Class ProviderMethod<T>

    • Method Detail

      • getKey

        public Key<T> getKey()
      • getMethod

        public java.lang.reflect.Method getMethod()
      • getInstance

        public java.lang.Object getInstance()
      • configure

        public void configure​(Binder binder)
      • get

        public T get()
        Description copied from interface: Provider
        Provides an instance of T. Must never return null.
        Specified by:
        get in interface Provider<T>
      • getDependencies

        public java.util.Set<Dependency<?>> getDependencies()
        Description copied from interface: HasDependencies
        Returns the known dependencies for this type. If this has dependencies whose values are not known statically, a dependency for the Injector will be included in the returned set.
        Specified by:
        getDependencies in interface HasDependencies
        a possibly empty set