Class ProviderMethod.ReflectionProviderMethod<T>

    • 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 class ProviderMethod<T>
        Throws:
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException