ProvisionListenerStackCallback for each key.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ProvisionListenerCallbackStore.
A struct that holds key and binding but uses just key for equality/hashcode. |
| Modifier and Type | Field and Description |
|---|---|
| private final LoadingCache | |
| private static final ImmutableSet | |
| private final ImmutableList |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private <T> ProvisionListenerStackCallback | create(Binding<T> binding)
Creates a new |
| public <T> ProvisionListenerStackCallback | get(Binding<T> binding)
Returns a new |
| pack-priv boolean |
| cache | back to summary |
|---|---|
| private final LoadingCache<ProvisionListenerCallbackStore. | |
| INTERNAL_BINDINGS | back to summary |
|---|---|
| private static final ImmutableSet<Key<?>> INTERNAL_BINDINGS | |
| listenerBindings | back to summary |
|---|---|
| private final ImmutableList<ProvisionListenerBinding> listenerBindings | |
| ProvisionListenerCallbackStore | back to summary |
|---|---|
| pack-priv ProvisionListenerCallbackStore(List<ProvisionListenerBinding> listenerBindings) | |
| create | back to summary |
|---|---|
| private <T> ProvisionListenerStackCallback Creates a new | |
| get | back to summary |
|---|---|
| public <T> ProvisionListenerStackCallback Returns a new
| |
| remove | back to summary |
|---|---|
| pack-priv boolean remove(Binding<?> type) Purges a key from the cache. Use this only if the type is not actually valid for binding and needs to be purged. (See issue 319 and ImplicitBindingTest#testCircularJitBindingsLeaveNoResidue and #testInstancesRequestingProvidersForThemselvesWithChildInjectors for examples of when this is necessary.) Returns true if the type was stored in the cache, false otherwise. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Binding | |
| pack-priv final Key |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| public int |
| binding | back to summary |
|---|---|
| pack-priv final Binding<?> binding | |
| key | back to summary |
|---|---|
| pack-priv final Key<?> key | |
| KeyBinding | back to summary |
|---|---|
| pack-priv KeyBinding(Key<?> key, Binding<?> binding) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |