final class ConstructorInjector<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ConstructionProxy<T> |
constructionProxy |
private com.google.common.collect.ImmutableSet<InjectionPoint> |
injectableMembers |
private MembersInjectorImpl<T> |
membersInjector |
private SingleParameterInjector<?>[] |
parameterInjectors |
Constructor and Description |
---|
ConstructorInjector(java.util.Set<InjectionPoint> injectableMembers,
ConstructionProxy<T> constructionProxy,
SingleParameterInjector<?>[] parameterInjectors,
MembersInjectorImpl<T> membersInjector) |
Modifier and Type | Method and Description |
---|---|
(package private) java.lang.Object |
construct(Errors errors,
InternalContext context,
java.lang.Class<?> expectedType,
ProvisionListenerStackCallback<T> provisionCallback)
Construct an instance.
|
(package private) ConstructionProxy<T> |
getConstructionProxy() |
com.google.common.collect.ImmutableSet<InjectionPoint> |
getInjectableMembers() |
private T |
provision(Errors errors,
InternalContext context,
ConstructionContext<T> constructionContext)
Provisions a new T.
|
private final com.google.common.collect.ImmutableSet<InjectionPoint> injectableMembers
private final SingleParameterInjector<?>[] parameterInjectors
private final ConstructionProxy<T> constructionProxy
private final MembersInjectorImpl<T> membersInjector
ConstructorInjector(java.util.Set<InjectionPoint> injectableMembers, ConstructionProxy<T> constructionProxy, SingleParameterInjector<?>[] parameterInjectors, MembersInjectorImpl<T> membersInjector)
public com.google.common.collect.ImmutableSet<InjectionPoint> getInjectableMembers()
ConstructionProxy<T> getConstructionProxy()
java.lang.Object construct(Errors errors, InternalContext context, java.lang.Class<?> expectedType, ProvisionListenerStackCallback<T> provisionCallback) throws ErrorsException
Object
instead of T
because
it may return a proxy.ErrorsException
private T provision(Errors errors, InternalContext context, ConstructionContext<T> constructionContext) throws ErrorsException
ErrorsException