abstract static class InternalProviderInstanceBindingImpl.CyclicFactory<T> extends InternalProviderInstanceBindingImpl.Factory<T>
ProviderWithExtensionVisitor
and also implements InternalFactory
provisionCallback
Constructor and Description |
---|
CyclicFactory(InternalProviderInstanceBindingImpl.InitializationTiming initializationTiming) |
Modifier and Type | Method and Description |
---|---|
T |
get(InternalContext context,
Dependency<?> dependency,
boolean linked)
Creates an object to be injected.
|
private T |
provision(Dependency<?> dependency,
InternalContext context,
ConstructionContext<T> constructionContext) |
doProvision, get, getSource, initialize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencies
CyclicFactory(InternalProviderInstanceBindingImpl.InitializationTiming initializationTiming)
public final T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException
InternalFactory
get
in interface InternalFactory<T>
get
in class InternalProviderInstanceBindingImpl.Factory<T>
context
- of this injectionlinked
- true if getting as a result of a linked bindingInternalProvisionException
- if a value cannot be providedprivate T provision(Dependency<?> dependency, InternalContext context, ConstructionContext<T> constructionContext) throws InternalProvisionException
InternalProvisionException