public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
public void destroy(ContainerContext context) { context.getServletContext().removeAttribute(INJECTOR_ATTRIBUTE_NAME); } }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { return context.getServletContext().getClass().getName().startsWith(UDT_SERVLET_PREFIX); }
@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(); } }
@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(); } }
@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(); } }
@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) { // 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) { // 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); } }
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); } } }
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); } } }
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 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); } } }
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 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); } } }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { ServletContext sc = context.getServletContext(); String si = sc.getServerInfo(); JettyLogger.LOG.debugv("Parsing server info: {0}", si); if(!si.contains(JETTY_SERVERNAME)) { return false; } int p = si.indexOf("/"); if (p < 0) { return false; } String version = si.substring(p + 1); String[] split = version.split("\\."); int major = parseVersion(split[0]); int minor = parseVersion(split[1]); return (major > MAJOR_VERSION || (major == MAJOR_VERSION & minor >= MINOR_VERSION)); }
@Override public boolean touch(ResourceLoader resourceLoader, ContainerContext context) throws Exception { ServletContext sc = context.getServletContext(); String si = sc.getServerInfo(); JettyLogger.LOG.debugv("Parsing server info: {0}", si); if(!si.contains(JETTY_SERVERNAME)) { return false; } int p = si.indexOf("/"); if (p < 0) { return false; } String version = si.substring(p + 1); String[] split = version.split("\\."); int major = parseVersion(split[0]); int minor = parseVersion(split[1]); return (major > MAJOR_VERSION || (major == MAJOR_VERSION & minor >= MINOR_VERSION)); }