Lines Matching full:mycontext
2251 bind(MyContext.class).to(MyContextImpl.class).in(Singleton.class);
2260 private final MyContext myContext;
2263 TestModule(MyContext myContext) {
2264 this.myContext = myContext
2269 bind(MySession.class).toInstance(myContext.getSession());
2296 As you see ParentModule declares binding for MyService and MyContext classes. Then MyContext is injected using constructor injection into TestModule class, which also declare binding for MySession. Then parent-module in test XML file is set to ParentModule class, this enables injection in TestModule. Later in TestClass you see two injections: