|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.inject.api.CommonsInject
public class CommonsInject
This class provides the anchor point to create injectors via
factory methods.
| Constructor Summary | |
|---|---|
CommonsInject()
|
|
| Method Summary | |
|---|---|
static IInjector |
build(Collection<IModule> pModules)
Creates a new injector, which is configured by invoking
the given modules. |
static IInjector |
build(IModule... pModules)
Creates a new injector, which is configured by invoking
the given modules. |
static IInjectorBuilder |
newBuilder()
An alternative to build(IModule...), which provides additional
control on the injectors configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommonsInject()
| Method Detail |
|---|
public static IInjector build(IModule... pModules)
injector, which is configured by invoking
the given modules.
pModules - The modules, which provide the injectors bindings.
injector.build(Collection)public static IInjector build(Collection<IModule> pModules)
injector, which is configured by invoking
the given modules.
pModules - The modules, which provide the injectors bindings.
injector.build(IModule...)public static IInjectorBuilder newBuilder()
build(IModule...), which provides additional
control on the injectors configuration. Rather than directly returning
an injector, this method returns an injector builder.
injector builder.build(IModule...),
build(Collection)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||