private static class FactoryProvider2.AssistData extends java.lang.Object implements AssistedMethod
Modifier and Type | Field and Description |
---|---|
(package private) Binding<?> |
cachedBinding
used to perform optimized factory creations.
|
(package private) java.lang.reflect.Constructor<?> |
constructor
the constructor the implementation is constructed with.
|
(package private) java.util.Set<Dependency<?>> |
dependencies
All non-assisted dependencies required by this method.
|
(package private) java.lang.reflect.Method |
factoryMethod
The factory method associated with this data
|
(package private) TypeLiteral<?> |
implementationType
the type of the implementation constructed
|
(package private) boolean |
optimized
|
(package private) com.google.common.collect.ImmutableList<Key<?>> |
paramTypes
the parameters in the factory method associated with this data.
|
(package private) java.util.List<FactoryProvider2.ThreadLocalProvider> |
providers
the list of optimized providers, empty if not optimized.
|
(package private) Key<?> |
returnType
the return type in the factory method that the constructor is bound to.
|
Constructor and Description |
---|
AssistData(java.lang.reflect.Constructor<?> constructor,
Key<?> returnType,
com.google.common.collect.ImmutableList<Key<?>> paramTypes,
TypeLiteral<?> implementationType,
java.lang.reflect.Method factoryMethod,
java.util.Set<Dependency<?>> dependencies,
boolean optimized,
java.util.List<FactoryProvider2.ThreadLocalProvider> providers) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<Dependency<?>> |
getDependencies()
Returns all non-assisted dependencies required to construct and inject
the implementation.
|
java.lang.reflect.Method |
getFactoryMethod()
Returns the factory method that is being assisted.
|
java.lang.reflect.Constructor<?> |
getImplementationConstructor()
Returns the constructor that will be used to construct instances of the
implementation.
|
TypeLiteral<?> |
getImplementationType()
Returns the implementation type that will be created when the method is
used.
|
java.lang.String |
toString() |
final java.lang.reflect.Constructor<?> constructor
final Key<?> returnType
final com.google.common.collect.ImmutableList<Key<?>> paramTypes
final TypeLiteral<?> implementationType
final java.util.Set<Dependency<?>> dependencies
final java.lang.reflect.Method factoryMethod
final boolean optimized
final java.util.List<FactoryProvider2.ThreadLocalProvider> providers
volatile Binding<?> cachedBinding
AssistData(java.lang.reflect.Constructor<?> constructor, Key<?> returnType, com.google.common.collect.ImmutableList<Key<?>> paramTypes, TypeLiteral<?> implementationType, java.lang.reflect.Method factoryMethod, java.util.Set<Dependency<?>> dependencies, boolean optimized, java.util.List<FactoryProvider2.ThreadLocalProvider> providers)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<Dependency<?>> getDependencies()
AssistedMethod
getDependencies
in interface AssistedMethod
public java.lang.reflect.Method getFactoryMethod()
AssistedMethod
getFactoryMethod
in interface AssistedMethod
public java.lang.reflect.Constructor<?> getImplementationConstructor()
AssistedMethod
getImplementationConstructor
in interface AssistedMethod
public TypeLiteral<?> getImplementationType()
AssistedMethod
getImplementationType
in interface AssistedMethod