public final class InternalInjectorCreator extends Object
Binder.newPrivateBinder() private environment. The primary injector is not necessarily a top-level injector.
Injector construction happens in two phases.
the tool stage| Constructor and Description |
|---|
InternalInjectorCreator()
|
| Modifier and Type | Method and Description |
|---|---|
InternalInjectorCreator |
addModules(Iterable
|
Injector |
build()
|
InternalInjectorCreator |
parentInjector(com
Sets the parent of the injector to-be-constructed.
|
InternalInjectorCreator |
stage(Stage
|
public InternalInjectorCreatorstage(Stage stage)
public InternalInjectorCreatorparentInjector(com .inject .internal .InjectorImpl parent)
parent and sets
#requireExplicitBindings() if the parent injector also required them.
public InternalInjectorCreatoraddModules(Iterable <? extends Module > modules)
public Injectorbuild()