Class SubWorld


  • public class SubWorld
    extends Object
    Represents a parallel Guice Injector inside World so that components can be selectively bound to World.

    See WIRING.md

    Author:
    Kohsuke Kawaguchi
    • Method Detail

      • getName

        public String getName()
      • getInjector

        public com.google.inject.Injector getInjector()
      • getAt

        public <T> com.google.inject.Provider<T> getAt​(Class<T> t)
        This is a part of the DSL construct that allows people to say:
         subworld "masters" {
             ...
             bind Foo to ...
         }
        
         bind Foo toProvider masters[Foo]  // export Foo from the "masters" subworld to the parent