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<? extends Module> modules) |
Injector |
build() |
InternalInjectorCreator |
parentInjector(com.google.inject.internal.InjectorImpl parent)
Sets the parent of the injector to-be-constructed.
|
InternalInjectorCreator |
stage(Stage stage) |
public InternalInjectorCreator stage(Stage stage)
public InternalInjectorCreator parentInjector(com.google.inject.internal.InjectorImpl parent)
parent
and sets #requireExplicitBindings()
if the parent
injector also required them.public InternalInjectorCreator addModules(Iterable<? extends Module> modules)
public Injector build()
Copyright © 2006-2014 Google, Inc.. All Rights Reserved.