Package | Description |
---|---|
com.google.inject.internal |
Guice (sounds like "juice")
|
Modifier and Type | Field and Description |
---|---|
private InjectorBindingData |
InjectorImpl.bindingData |
private InjectorBindingData |
InjectorShell.Builder.bindingData |
private InjectorBindingData |
InjectorShell.InheritedScannersModule.bindingData |
Modifier and Type | Field and Description |
---|---|
private com.google.common.cache.Cache<InjectorBindingData,java.util.Set<WeakKeySet.KeyAndSource>> |
WeakKeySet.evictionCache
Tracks child injector lifetimes and evicts banned keys/sources after the child injector is
garbage collected.
|
private java.util.Optional<InjectorBindingData> |
InjectorBindingData.parent |
Modifier and Type | Method and Description |
---|---|
(package private) InjectorBindingData |
InjectorImpl.getBindingData() |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<InjectorBindingData> |
InjectorBindingData.parent() |
Modifier and Type | Method and Description |
---|---|
void |
WeakKeySet.add(Key<?> key,
InjectorBindingData state,
java.lang.Object source) |
(package private) void |
InjectorJitBindingData.banKey(Key<?> key,
InjectorBindingData injectorBindingData,
java.lang.Object source)
Forbids the corresponding injector and its ancestors from creating a binding to
key . |
(package private) void |
InjectorJitBindingData.banKeyInParent(Key<?> key,
InjectorBindingData injectorBindingData,
java.lang.Object source)
Similar to
InjectorJitBindingData.banKey(Key, InjectorBindingData, Object) but we only begin banning the
binding at the parent level. |
private static boolean |
AbstractBindingProcessor.isOkayDuplicate(BindingImpl<?> original,
BindingImpl<?> binding,
InjectorBindingData bindingData)
We tolerate duplicate bindings if one exposes the other or if the two bindings are considered
duplicates (see
Bindings#areDuplicates(BindingImpl, BindingImpl) . |
Modifier and Type | Method and Description |
---|---|
private void |
WeakKeySet.cleanupOnRemoval(com.google.common.cache.RemovalNotification<InjectorBindingData,java.util.Set<WeakKeySet.KeyAndSource>> notification) |
Constructor and Description |
---|
InheritedScannersModule(InjectorBindingData bindingData) |
InjectorImpl(InjectorImpl parent,
InjectorBindingData bindingData,
InjectorJitBindingData jitBindingData,
InjectorImpl.InjectorOptions injectorOptions) |
Constructor and Description |
---|
InjectorBindingData(java.util.Optional<InjectorBindingData> parent) |