Package | Description |
---|---|
com.google.inject.internal |
Guice (sounds like like "juice")
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
InheritingState |
Modifier and Type | Field and Description |
---|---|
static State |
State.NONE |
private State |
InheritingState.parent |
(package private) State |
InjectorImpl.state |
private State |
InjectorShell.Builder.state
lazily constructed
|
private State |
InjectorShell.InheritedScannersModule.state |
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.Cache<State,java.util.Set<WeakKeySet.KeyAndSource>> |
WeakKeySet.evictionCache
Tracks child injector lifetimes and evicts blacklisted keys/sources after the child injector is
garbage collected.
|
Modifier and Type | Method and Description |
---|---|
private State |
InjectorShell.Builder.getState() |
State |
InheritingState.parent() |
State |
State.parent() |
Modifier and Type | Method and Description |
---|---|
void |
WeakKeySet.add(Key<?> key,
State state,
java.lang.Object source) |
void |
InheritingState.blacklist(Key<?> key,
State state,
java.lang.Object source) |
void |
State.blacklist(Key<?> key,
State state,
java.lang.Object source)
Forbids the corresponding injector from creating a binding to
key . |
private boolean |
AbstractBindingProcessor.isOkayDuplicate(BindingImpl<?> original,
BindingImpl<?> binding,
State state)
We tolerate duplicate bindings if one exposes the other or if the two bindings
are considered duplicates (see
Bindings#areDuplicates(BindingImpl, BindingImpl) . |
Constructor and Description |
---|
InheritedScannersModule(State state) |
InheritingState(State parent) |
InjectorImpl(InjectorImpl parent,
State state,
InjectorImpl.InjectorOptions injectorOptions) |