static class InjectorShell.Builder
extends java.lang.Object
Modifier and Type | Field and 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 a
private environment |
private Stage |
stage |
private State |
state
lazily constructed
|
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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) |
private final java.util.List<Element> elements
private final java.util.List<Module> modules
private State state
private InjectorImpl parent
private InjectorImpl.InjectorOptions options
private Stage stage
private PrivateElementsImpl privateElements
private environment
InjectorShell.Builder stage(Stage stage)
InjectorShell.Builder parent(InjectorImpl parent)
InjectorShell.Builder privateElements(PrivateElements privateElements)
void addModules(java.lang.Iterable<? extends Module> modules)
Stage getStage()
java.lang.Object lock()
java.util.List<InjectorShell> build(Initializer initializer, ProcessedBindingData bindingData, Stopwatch stopwatch, Errors errors)
private environments
. The
primary injector will be first in the returned list.private State getState()