private static final class ProviderMethod.ReflectionProviderMethod<T> extends ProviderMethod<T>
ProviderMethod implementation that invokes the method using normal java reflection.instance, method| Constructor and Description |
|---|
ReflectionProviderMethod(Key<T> key,
java.lang.reflect.Method method,
java.lang.Object instance,
com.google.common.collect.ImmutableSet<Dependency<?>> dependencies,
java.util.List<Provider<?>> parameterProviders,
java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation,
java.lang.annotation.Annotation annotation) |
| Modifier and Type | Method and Description |
|---|---|
(package private) T |
doProvision(java.lang.Object[] parameters)
Extension point for our subclasses to implement the provisioning strategy.
|
acceptExtensionVisitor, configure, create, createBinding, equals, get, getAnnotation, getDependencies, getEnclosingInstance, getInstance, getKey, getMethod, hashCode, toStringReflectionProviderMethod(Key<T> key, java.lang.reflect.Method method, java.lang.Object instance, com.google.common.collect.ImmutableSet<Dependency<?>> dependencies, java.util.List<Provider<?>> parameterProviders, java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation, java.lang.annotation.Annotation annotation)
T doProvision(java.lang.Object[] parameters) throws java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ProviderMethoddoProvision in class ProviderMethod<T>java.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetException