protected static <B, I> InjectionContext<B, I> boot(Injector injector, Handler<Class<?>, Boolean> filter, Scope... scopes) throws Exception { for (Scope scope : scopes) { injector.addScope(scope); } if (filter == null) { return (InjectionContext<B, I>)injector.create(); } else { return (InjectionContext<B, I>)injector.create(filter); } }
protected static <B, I> InjectionContext<B, I> boot(Injector injector, Handler<Class<?>, Boolean> filter, Scope... scopes) throws Exception { for (Scope scope : scopes) { injector.addScope(scope); } if (filter == null) { return (InjectionContext<B, I>)injector.create(); } else { return (InjectionContext<B, I>)injector.create(filter); } }
injector.addScope(scope);
injector.addScope(scope);