Class ContainerInitializer
java.lang.Object
org.eclipse.jetty.servlet.listener.ContainerInitializer
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Utility Methods for manual execution of
ServletContainerInitializer when
using Embedded Jetty.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Utility Method to allow for manual execution ofServletContainerInitializerwhen using Embedded Jetty.
-
Constructor Details
-
ContainerInitializer
public ContainerInitializer()Deprecated.
-
-
Method Details
-
asContextListener
public static ContainerInitializer.ServletContainerInitializerServletContextListener asContextListener(ServletContainerInitializer sci) Deprecated.Utility Method to allow for manual execution ofServletContainerInitializerwhen using Embedded Jetty.ServletContextHandler context = new ServletContextHandler(); ServletContainerInitializer corpSci = new MyCorporateSCI(); context.addEventListener(ContainerInitializer.asContextListener(corpSci));
The
ServletContainerInitializerwill have itsServletContainerInitializer.onStartup(Set, ServletContext)method called with the manually configured list ofSet<Class<?>> cset. In other words, this usage does not perform bytecode or annotation scanning against the classes in yourServletContextHandlerorWebAppContext.- Parameters:
sci- theServletContainerInitializerto call- Returns:
- the
ServletContextListenerwrapping the SCI - See Also:
-