Package com.google.inject.internal
Class ProviderMethod.ReflectionProviderMethod<T>
java.lang.Object
com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory<T>
com.google.inject.internal.InternalProviderInstanceBindingImpl.CyclicFactory<T>
com.google.inject.internal.ProviderMethod<T>
com.google.inject.internal.ProviderMethod.ReflectionProviderMethod<T>
- All Implemented Interfaces:
InternalFactory<T>,Provider<T>,HasDependencies,ProviderWithExtensionVisitor<T>,ProvidesMethodBinding<T>,javax.inject.Provider<T>
- Enclosing class:
ProviderMethod<T>
A
ProviderMethod implementation that invokes the method using normal java reflection.-
Field Summary
Fields inherited from class com.google.inject.internal.ProviderMethod
instance, methodFields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback -
Constructor Summary
ConstructorsConstructorDescriptionReflectionProviderMethod(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation) -
Method Summary
Modifier and TypeMethodDescription(package private) TdoProvision(Object[] parameters) Extension point for our subclasses to implement the provisioning strategy.Methods inherited from class com.google.inject.internal.ProviderMethod
acceptExtensionVisitor, configure, create, doProvision, equals, getAnnotation, getDependencies, getEnclosingInstance, getInstance, getKey, getMethod, hashCode, initialize, toStringMethods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.CyclicFactory
getMethods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, getSource
-
Constructor Details
-
ReflectionProviderMethod
ReflectionProviderMethod(Key<T> key, Method method, Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, Class<? extends Annotation> scopeAnnotation, Annotation annotation)
-
-
Method Details
-
doProvision
Description copied from class:ProviderMethodExtension point for our subclasses to implement the provisioning strategy.- Specified by:
doProvisionin classProviderMethod<T>- Throws:
IllegalAccessExceptionInvocationTargetException
-