Package com.google.inject.internal
Class ConstantFactory<T>
java.lang.Object
com.google.inject.internal.ConstantFactory<T>
- All Implemented Interfaces:
InternalFactory<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(InternalContext context, Dependency<?> dependency, boolean linked) Creates an object to be injected.toString()
-
Field Details
-
initializable
-
-
Constructor Details
-
ConstantFactory
-
-
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
-
toString
-