void destroy(ServletContext context) { if (shutdownAction != null) { // Shutdown only if bootstrap not skipped shutdownAction.run(); } if (container != null) { container.destroy(new ContainerContext(context, null)); } }
public void initialize(ContainerContext context) { try { WeldForwardingInstanceManager.replaceInstanceManager(context.getServletContext(), context.getManager()); if(Boolean.TRUE.equals(context.getServletContext().getAttribute(EnhancedListener.ENHANCED_LISTENER_USED_ATTRIBUTE_NAME))) { TomcatLogger.LOG.allInjectionsAvailable(); } else { TomcatLogger.LOG.listenersInjectionsNotAvailable(); } } catch (Exception e) { TomcatLogger.LOG.unableToReplaceTomcat(e); } } }
public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
public void initialize(ContainerContext context) { try { WeldForwardingInstanceManager.replaceInstanceManager(context.getServletContext(), context.getManager()); if(Boolean.TRUE.equals(context.getServletContext().getAttribute(EnhancedListener.ENHANCED_LISTENER_USED_ATTRIBUTE_NAME))) { TomcatLogger.LOG.allInjectionsAvailable(); } else { TomcatLogger.LOG.listenersInjectionsNotAvailable(); } } catch (Exception e) { TomcatLogger.LOG.unableToReplaceTomcat(e); } } }
public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
void destroy(ServletContext context) { if (shutdownAction != null) { // Shutdown only if bootstrap not skipped shutdownAction.run(); } if (container != null) { container.destroy(new ContainerContext(context, null)); } }
public void initialize(ContainerContext context) { // Try pushing a Jetty Injector into the servlet context try { context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager())); JettyLogger.LOG.gwtHostedModeDetected(); Class<?> decoratorClass = getWeldServletHandlerClass(); Method processMethod = decoratorClass.getMethod("process", ServletContext.class); processMethod.invoke(null, context.getServletContext()); } catch (Exception e) { JettyLogger.LOG.unableToCreateJettyWeldInjector(e); } } }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
void destroy(ServletContext context) { if (shutdownAction != null) { // Shutdown only if bootstrap not skipped shutdownAction.run(); } if (container != null) { container.destroy(new ContainerContext(context, null)); } }
public void initialize(ContainerContext context) { // Try pushing a Jetty Injector into the servlet context try { context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager())); JettyLogger.LOG.gwtHostedModeDetected(); Class<?> decoratorClass = getWeldServletHandlerClass(); Method processMethod = decoratorClass.getMethod("process", ServletContext.class); processMethod.invoke(null, context.getServletContext()); } catch (Exception e) { JettyLogger.LOG.unableToCreateJettyWeldInjector(e); } } }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
ContainerContext containerContext = new ContainerContext(context, manager); StringBuilder dump = new StringBuilder(); Container container = findContainer(containerContext, dump);
public void initialize(ContainerContext context) { // Try pushing a Jetty Injector into the servlet context try { context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager())); JettyLogger.LOG.gwtHostedModeDetected(); Class<?> decoratorClass = getWeldServletHandlerClass(); Method processMethod = decoratorClass.getMethod("process", ServletContext.class); processMethod.invoke(null, context.getServletContext()); } catch (Exception e) { JettyLogger.LOG.unableToCreateJettyWeldInjector(e); } } }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
ContainerContext containerContext = new ContainerContext(context, manager); StringBuilder dump = new StringBuilder(); Container container = findContainer(containerContext, dump);
@Override public void initialize(ContainerContext context) { // Try pushing a Jetty Injector into the servlet context try { context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager())); WeldDecorator.process(context.getServletContext()); if(Boolean.TRUE.equals(context.getServletContext().getAttribute(EnhancedListener.ENHANCED_LISTENER_USED_ATTRIBUTE_NAME))) { // ServletContainerInitializer works on versions prior to 9.1.1 but the listener injection doesn't JettyLogger.LOG.jettyDetectedListenersInjectionIsSupported(); } else { JettyLogger.LOG.jettyDetectedListenersInjectionIsNotSupported(); } } catch (Exception e) { JettyLogger.LOG.unableToCreateJettyWeldInjector(e); } }
@Override public void initialize(ContainerContext context) { Object value = context.getServletContext().getAttribute(WeldServletExtension.INSTALLED); if (WeldServletExtension.INSTALLED_FULL.equals(value)) { UndertowLogger.LOG.undertowDetected(); } else if (WeldServletExtension.INSTALLED_SERVLET.equals(value)) { UndertowLogger.LOG.undertowDetectedServletOnly(); } }
ContainerContext containerContext = new ContainerContext(context, manager); StringBuilder dump = new StringBuilder(); Container container = findContainer(containerContext, dump);
@Override public void initialize(ContainerContext context) { // Try pushing a Jetty Injector into the servlet context try { context.getServletContext().setAttribute(INJECTOR_ATTRIBUTE_NAME, new JettyWeldInjector(context.getManager())); WeldDecorator.process(context.getServletContext()); if(Boolean.TRUE.equals(context.getServletContext().getAttribute(EnhancedListener.ENHANCED_LISTENER_USED_ATTRIBUTE_NAME))) { // ServletContainerInitializer works on versions prior to 9.1.1 but the listener injection doesn't JettyLogger.LOG.jettyDetectedListenersInjectionIsSupported(); } else { JettyLogger.LOG.jettyDetectedListenersInjectionIsNotSupported(); } } catch (Exception e) { JettyLogger.LOG.unableToCreateJettyWeldInjector(e); } }