Package se.jbee.inject

Examples of se.jbee.inject.Injector.resolve()


  }
 
  @Test
  public void test() {
    Injector injector = Bootstrap.injector(DecoratorBindsModule.class);
    assertEquals(Decorator.class, injector.resolve(Dependency.dependency(Foo.class)).getClass());
  }
}
View Full Code Here


  }

  private static void assertEditionInstalls( Edition edition, Integer... expected ) {
    Injector injector = Bootstrap.injector( RootBundle.class,
        Globals.STANDARD.edition( edition ) );
    assertEqualSets( expected, injector.resolve( dependency( Integer[].class ) ) );
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.