Class InjectorShell


  • final class InjectorShell
    extends java.lang.Object
    A partially-initialized injector. See InternalInjectorCreator, which uses this to build a tree of injectors in batch.
    • Field Detail

      • elements

        private final java.util.List<Element> elements
    • Constructor Detail

      • InjectorShell

        private InjectorShell​(java.util.List<Element> elements,
                              InjectorImpl injector)
    • Method Detail

      • getElements

        java.util.List<Element> getElements()
      • bindInjector

        private static void bindInjector​(InjectorImpl injector)
        The Injector is a special case because we allow both parent and child injectors to both have a binding for that key.
      • bindLogger

        private static void bindLogger​(InjectorImpl injector)
        The Logger is a special case because it knows the injection point of the injected member. It's the only binding that does this.