private static class ConstructorBindingImpl.Factory<T> extends java.lang.Object implements InternalFactory<T>
Modifier and Type | Field and Description |
---|---|
private ConstructorInjector<T> |
constructorInjector |
private boolean |
failIfNotLinked |
private Key<?> |
key |
private ProvisionListenerStackCallback<T> |
provisionCallback |
Constructor and Description |
---|
Factory(boolean failIfNotLinked,
Key<?> key) |
Modifier and Type | Method and Description |
---|---|
T |
get(Errors errors,
InternalContext context,
Dependency<?> dependency,
boolean linked)
Creates an object to be injected.
|
private final boolean failIfNotLinked
private final Key<?> key
private ConstructorInjector<T> constructorInjector
private ProvisionListenerStackCallback<T> provisionCallback
Factory(boolean failIfNotLinked, Key<?> key)
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 provided