Class FactoryProvider2.AssistData

  • All Implemented Interfaces:
    AssistedMethod
    Enclosing class:
    FactoryProvider2<F>

    private static class FactoryProvider2.AssistData
    extends java.lang.Object
    implements AssistedMethod
    All the data necessary to perform an assisted inject.
    • Constructor Detail

      • AssistData

        AssistData​(java.lang.reflect.Constructor<?> constructor,
                   Key<?> returnType,
                   com.google.common.collect.ImmutableList<Key<?>> paramTypes,
                   TypeLiteral<?> implementationType,
                   java.lang.reflect.Method factoryMethod,
                   java.util.Set<Dependency<?>> dependencies,
                   boolean optimized,
                   java.util.List<FactoryProvider2.ThreadLocalProvider> providers)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getDependencies

        public java.util.Set<Dependency<?>> getDependencies()
        Description copied from interface: AssistedMethod
        Returns all non-assisted dependencies required to construct and inject the implementation.
        Specified by:
        getDependencies in interface AssistedMethod
      • getFactoryMethod

        public java.lang.reflect.Method getFactoryMethod()
        Description copied from interface: AssistedMethod
        Returns the factory method that is being assisted.
        Specified by:
        getFactoryMethod in interface AssistedMethod
      • getImplementationConstructor

        public java.lang.reflect.Constructor<?> getImplementationConstructor()
        Description copied from interface: AssistedMethod
        Returns the constructor that will be used to construct instances of the implementation.
        Specified by:
        getImplementationConstructor in interface AssistedMethod