public final <T> T resolveInstance(Class<T> beanType) { try { BeanLifeCycle<T> pluginLifeCycle = get(beanType); return pluginLifeCycle != null ? pluginLifeCycle.get() : null; } catch (InvocationTargetException e) { // log.log("Could not retrieve bean of type " + beanType, e.getCause()); return null; } }
public final <T> T resolveInstance(Class<T> beanType) { try { BeanLifeCycle<T> pluginLifeCycle = get(beanType); return pluginLifeCycle != null ? pluginLifeCycle.get() : null; } catch (InvocationTargetException e) { // log.log("Could not retrieve bean of type " + beanType, e.getCause()); return null; } }
@Override public Completion<Boolean> refresh(boolean recompile) { if (application == null) { // For now only works with CDI ProvidedCDIInjector injector = (ProvidedCDIInjector)this.injector; // Get App application = injector.getApplication(); // Complete application start applicationLifeCycle = application.getInjectionContext().get(Application.class); // Complete application start try { applicationLifeCycle.get(); } catch (InvocationTargetException e) { return Completion.failed(e); } // server.register(application, getRunMode().getCacheAssets()); } // return Completion.completed(false); }
@Override public Completion<Boolean> refresh(boolean recompile) { if (application == null) { // For now only works with CDI ProvidedCDIInjector injector = (ProvidedCDIInjector)this.injector; // Get App application = injector.getApplication(); // Complete application start applicationLifeCycle = application.getInjectionContext().get(Application.class); // Complete application start try { applicationLifeCycle.get(); } catch (InvocationTargetException e) { return Completion.failed(e); } // server.register(application, getRunMode().getCacheAssets()); } // return Completion.completed(false); }
request.controllerLifeCycle = manager.get(controllerType); if (request.controllerLifeCycle != null) {
request.controllerLifeCycle = manager.get(controllerType); if (request.controllerLifeCycle != null) {
assertNotSame(p1, p3); if (di != InjectorProvider.GUICE) { assertNull(context.get(Date.class));
assertNotSame(p1, p3); if (di != InjectorProvider.GUICE) { assertNull(context.get(Date.class));