final class ExposedKeyFactory<T> extends java.lang.Object implements InternalFactory<T>, CreationListener
| Modifier and Type | Field and Description |
|---|---|
private BindingImpl<T> |
delegate |
private Key<T> |
key |
private PrivateElements |
privateElements |
| Constructor and Description |
|---|
ExposedKeyFactory(Key<T> key,
PrivateElements privateElements) |
| Modifier and Type | Method and Description |
|---|---|
T |
get(Errors errors,
InternalContext context,
Dependency<?> dependency,
boolean linked)
Creates an object to be injected.
|
void |
notify(Errors errors)
Notifies that creation should happen.
|
private final PrivateElements privateElements
private BindingImpl<T> delegate
ExposedKeyFactory(Key<T> key, PrivateElements privateElements)
public void notify(Errors errors)
CreationListenernotify in interface CreationListenerpublic T get(Errors errors, InternalContext context, Dependency<?> dependency, boolean linked) throws ErrorsException
InternalFactoryget in interface InternalFactory<T>context - of this injectionlinked - true if getting as a result of a linked bindingErrorsException - if a value cannot be provided