Class ProviderMethod.FastClassProviderMethod<T>

    • Field Detail

      • fastMethod

        final java.util.function.BiFunction<java.lang.Object,​java.lang.Object[],​java.lang.Object> fastMethod
    • Constructor Detail

      • FastClassProviderMethod

        FastClassProviderMethod​(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,
                                java.util.function.BiFunction<java.lang.Object,​java.lang.Object[],​java.lang.Object> fastMethod)
    • Method Detail

      • doProvision

        public T doProvision​(java.lang.Object[] parameters)
                      throws 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.reflect.InvocationTargetException