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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConstructorInjector
<T> private final boolean
private final Key
<?> private ProvisionListenerStackCallback
<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(InternalContext context, Dependency<?> dependency, boolean linked) Creates an object to be injected.
-
Field Details
-
failIfNotLinked
private final boolean failIfNotLinked -
key
-
constructorInjector
-
provisionCallback
-
-
Constructor Details
-
Factory
Factory(boolean failIfNotLinked, Key<?> key)
-
-
Method Details
-
get
public T get(InternalContext context, Dependency<?> dependency, boolean linked) throws InternalProvisionException Description copied from interface:InternalFactory
Creates an object to be injected.- Specified by:
get
in 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
-