Package com.google.inject.internal
Class ConstructorBindingImpl.Factory<T>
- java.lang.Object
-
- com.google.inject.internal.ConstructorBindingImpl.Factory<T>
-
- All Implemented Interfaces:
InternalFactory<T>
- Enclosing class:
- ConstructorBindingImpl<T>
private static class ConstructorBindingImpl.Factory<T> extends java.lang.Object implements InternalFactory<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ConstructorInjector<T>constructorInjectorprivate booleanfailIfNotLinkedprivate Key<?>keyprivate ProvisionListenerStackCallback<T>provisionCallback
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget(InternalContext context, Dependency<?> dependency, boolean linked)Creates an object to be injected.
-
-
-
Field Detail
-
failIfNotLinked
private final boolean failIfNotLinked
-
key
private final Key<?> key
-
constructorInjector
private ConstructorInjector<T> constructorInjector
-
provisionCallback
private ProvisionListenerStackCallback<T> provisionCallback
-
-
Constructor Detail
-
Factory
Factory(boolean failIfNotLinked, Key<?> key)
-
-
Method Detail
-
get
public T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException
Description copied from interface:InternalFactoryCreates an object to be injected.- Specified by:
getin interfaceInternalFactory<T>- Parameters:
context- of this injectionlinked- true if getting as a result of a linked binding- Returns:
- instance that was created
- Throws:
InternalProvisionException- if a value cannot be provided
-
-