private static final class ProviderMethod.Factory<T> extends java.lang.Object implements InternalFactory<T>
Modifier and Type | Field and Description |
---|---|
private SingleParameterInjector<?>[] |
parameterInjectors |
private ProviderMethod<T> |
providerMethod |
private ProvisionListenerStackCallback<T> |
provisionCallback |
private java.lang.Object |
source |
Constructor and Description |
---|
Factory(java.lang.Object source,
ProviderMethod<T> providerMethod) |
Modifier and Type | Method and Description |
---|---|
T |
get(Errors errors,
InternalContext context,
Dependency<?> dependency,
boolean linked)
Creates an object to be injected.
|
(package private) T |
provision(Errors errors,
Dependency<?> dependency,
InternalContext context,
ConstructionContext<T> constructionContext) |
java.lang.String |
toString() |
private final java.lang.Object source
private final ProviderMethod<T> providerMethod
private ProvisionListenerStackCallback<T> provisionCallback
private SingleParameterInjector<?>[] parameterInjectors
Factory(java.lang.Object source, ProviderMethod<T> providerMethod)
public T get(Errors errors, InternalContext context, Dependency<?> dependency, boolean linked) throws ErrorsException
InternalFactory
get
in interface InternalFactory<T>
context
- of this injectionlinked
- true if getting as a result of a linked bindingErrorsException
- if a value cannot be providedT provision(Errors errors, Dependency<?> dependency, InternalContext context, ConstructionContext<T> constructionContext) throws ErrorsException
ErrorsException
public java.lang.String toString()
toString
in class java.lang.Object