Package com.google.inject.assistedinject
Class FactoryProvider2.AssistData
java.lang.Object
com.google.inject.assistedinject.FactoryProvider2.AssistData
- All Implemented Interfaces:
AssistedMethod
- Enclosing class:
FactoryProvider2<F>
All the data necessary to perform an assisted inject.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Binding
<?> used to perform optimized factory creations.(package private) final Constructor
<?> the constructor the implementation is constructed with.(package private) final Set
<Dependency<?>> All non-assisted dependencies required by this method.(package private) final Method
The factory method associated with this data(package private) final TypeLiteral
<?> the type of the implementation constructed(package private) final boolean
(package private) final com.google.common.collect.ImmutableList
<Key<?>> the parameters in the factory method associated with this data.(package private) final List
<FactoryProvider2.ThreadLocalProvider> the list of optimized providers, empty if not optimized.(package private) final Key
<?> the return type in the factory method that the constructor is bound to. -
Constructor Summary
ConstructorsConstructorDescriptionAssistData
(Constructor<?> constructor, Key<?> returnType, com.google.common.collect.ImmutableList<Key<?>> paramTypes, TypeLiteral<?> implementationType, Method factoryMethod, Set<Dependency<?>> dependencies, boolean optimized, List<FactoryProvider2.ThreadLocalProvider> providers) -
Method Summary
Modifier and TypeMethodDescriptionSet
<Dependency<?>> Returns all non-assisted dependencies required to construct and inject the implementation.Returns the factory method that is being assisted.Constructor
<?> Returns the constructor that will be used to construct instances of the implementation.TypeLiteral
<?> Returns the implementation type that will be created when the method is used.toString()
-
Field Details
-
constructor
the constructor the implementation is constructed with. -
returnType
the return type in the factory method that the constructor is bound to. -
paramTypes
the parameters in the factory method associated with this data. -
implementationType
the type of the implementation constructed -
dependencies
All non-assisted dependencies required by this method. -
factoryMethod
The factory method associated with this data -
optimized
final boolean optimized -
providers
the list of optimized providers, empty if not optimized. -
cachedBinding
used to perform optimized factory creations.
-
-
Constructor Details
-
AssistData
AssistData(Constructor<?> constructor, Key<?> returnType, com.google.common.collect.ImmutableList<Key<?>> paramTypes, TypeLiteral<?> implementationType, Method factoryMethod, Set<Dependency<?>> dependencies, boolean optimized, List<FactoryProvider2.ThreadLocalProvider> providers)
-
-
Method Details
-
toString
-
getDependencies
Description copied from interface:AssistedMethod
Returns all non-assisted dependencies required to construct and inject the implementation.- Specified by:
getDependencies
in interfaceAssistedMethod
-
getFactoryMethod
Description copied from interface:AssistedMethod
Returns the factory method that is being assisted.- Specified by:
getFactoryMethod
in interfaceAssistedMethod
-
getImplementationConstructor
Description copied from interface:AssistedMethod
Returns the constructor that will be used to construct instances of the implementation.- Specified by:
getImplementationConstructor
in interfaceAssistedMethod
-
getImplementationType
Description copied from interface:AssistedMethod
Returns the implementation type that will be created when the method is used.- Specified by:
getImplementationType
in interfaceAssistedMethod
-