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>
private static final class ProviderMethod.ReflectionProviderMethod<T> extends ProviderMethod<T>
AProviderMethod
implementation that invokes the method using normal java reflection.
-
-
Field Summary
-
Fields inherited from class com.google.inject.internal.ProviderMethod
instance, method
-
Fields inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
provisionCallback
-
-
Constructor Summary
Constructors Constructor Description ReflectionProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) T
doProvision(java.lang.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, toString
-
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.CyclicFactory
get
-
Methods inherited from class com.google.inject.internal.InternalProviderInstanceBindingImpl.Factory
get, getSource
-
-
-
-
Constructor Detail
-
ReflectionProviderMethod
ReflectionProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
-
-
Method Detail
-
doProvision
T doProvision(java.lang.Object[] parameters) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
Description copied from class:ProviderMethod
Extension point for our subclasses to implement the provisioning strategy.- Specified by:
doProvision
in classProviderMethod<T>
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
-
-