Class ProviderMethod<T>

    • Field Detail

      • instance

        protected final java.lang.Object instance
      • method

        protected final java.lang.reflect.Method method
      • key

        private final Key<T> key
      • scopeAnnotation

        private final java.lang.Class<? extends java.lang.annotation.Annotation> scopeAnnotation
      • dependencies

        private final com.google.common.collect.ImmutableSet<Dependency<?>> dependencies
      • exposed

        private final boolean exposed
      • annotation

        private final java.lang.annotation.Annotation annotation
    • Constructor Detail

      • ProviderMethod

        private ProviderMethod​(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)
        Parameters:
        method - the method to invoke. It's return type must be the same type as key.