Package com.google.inject.internal
Class InjectorShell.Builder
- java.lang.Object
-
- com.google.inject.internal.InjectorShell.Builder
-
- Enclosing class:
- InjectorShell
static class InjectorShell.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<Element>
elements
private java.util.List<Module>
modules
private InjectorImpl.InjectorOptions
options
private InjectorImpl
parent
private PrivateElementsImpl
privateElements
null unless this exists in aprivate environment
private Stage
stage
private State
state
lazily constructed
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addModules(java.lang.Iterable<? extends Module> modules)
(package private) java.util.List<InjectorShell>
build(Initializer initializer, ProcessedBindingData bindingData, Stopwatch stopwatch, Errors errors)
Creates and returns the injector shells for the current modules.(package private) Stage
getStage()
private State
getState()
(package private) java.lang.Object
lock()
(package private) InjectorShell.Builder
parent(InjectorImpl parent)
(package private) InjectorShell.Builder
privateElements(PrivateElements privateElements)
(package private) InjectorShell.Builder
stage(Stage stage)
-
-
-
Field Detail
-
elements
private final java.util.List<Element> elements
-
modules
private final java.util.List<Module> modules
-
state
private State state
lazily constructed
-
parent
private InjectorImpl parent
-
options
private InjectorImpl.InjectorOptions options
-
stage
private Stage stage
-
privateElements
private PrivateElementsImpl privateElements
null unless this exists in aprivate environment
-
-
Method Detail
-
stage
InjectorShell.Builder stage(Stage stage)
-
parent
InjectorShell.Builder parent(InjectorImpl parent)
-
privateElements
InjectorShell.Builder privateElements(PrivateElements privateElements)
-
addModules
void addModules(java.lang.Iterable<? extends Module> modules)
-
getStage
Stage getStage()
-
lock
java.lang.Object lock()
-
build
java.util.List<InjectorShell> build(Initializer initializer, ProcessedBindingData bindingData, Stopwatch stopwatch, Errors errors)
Creates and returns the injector shells for the current modules. Multiple shells will be returned if any modules containprivate environments
. The primary injector will be first in the returned list.
-
getState
private State getState()
-
-