Class SubWorld

java.lang.Object
org.jenkinsci.test.acceptance.guice.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 Details

    • 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