Class FactoryProxy<T>

  • All Implemented Interfaces:
    CreationListener, InternalFactory<T>

    final class FactoryProxy<T>
    extends java.lang.Object
    implements InternalFactory<T>, CreationListener
    A placeholder which enables us to swap in the real factory once the injector is created. Used for a linked binding, so that getting the linked binding returns the link's factory.
    • Field Detail

      • key

        private final Key<T> key
      • targetKey

        private final Key<? extends T> targetKey
      • source

        private final java.lang.Object source
    • Constructor Detail

      • FactoryProxy

        FactoryProxy​(InjectorImpl injector,
                     Key<T> key,
                     Key<? extends T> targetKey,
                     java.lang.Object source)