final class MembersInjectorStore
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private FailableCache<TypeLiteral<?>,MembersInjectorImpl<?>> |
cache |
private InjectorImpl |
injector |
private com.google.common.collect.ImmutableList<TypeListenerBinding> |
typeListenerBindings |
Constructor and Description |
---|
MembersInjectorStore(InjectorImpl injector,
java.util.List<TypeListenerBinding> typeListenerBindings) |
Modifier and Type | Method and Description |
---|---|
private <T> MembersInjectorImpl<T> |
createWithListeners(TypeLiteral<T> type,
Errors errors)
Creates a new members injector and attaches both injection listeners and method aspects.
|
<T> MembersInjectorImpl<T> |
get(TypeLiteral<T> key,
Errors errors)
Returns a new complete members injector with injection listeners registered.
|
(package private) com.google.common.collect.ImmutableList<SingleMemberInjector> |
getInjectors(java.util.Set<InjectionPoint> injectionPoints,
Errors errors)
Returns the injectors for the specified injection points.
|
boolean |
hasTypeListeners()
Returns true if any type listeners are installed.
|
(package private) boolean |
remove(TypeLiteral<?> type)
Purges a type literal from the cache.
|
private final InjectorImpl injector
private final com.google.common.collect.ImmutableList<TypeListenerBinding> typeListenerBindings
private final FailableCache<TypeLiteral<?>,MembersInjectorImpl<?>> cache
MembersInjectorStore(InjectorImpl injector, java.util.List<TypeListenerBinding> typeListenerBindings)
public boolean hasTypeListeners()
public <T> MembersInjectorImpl<T> get(TypeLiteral<T> key, Errors errors) throws ErrorsException
ErrorsException
boolean remove(TypeLiteral<?> type)
private <T> MembersInjectorImpl<T> createWithListeners(TypeLiteral<T> type, Errors errors) throws ErrorsException
ErrorsException
com.google.common.collect.ImmutableList<SingleMemberInjector> getInjectors(java.util.Set<InjectionPoint> injectionPoints, Errors errors)