Class ContainerInitializer
- java.lang.Object
-
- org.eclipse.jetty.servlet.listener.ContainerInitializer
-
@Deprecated(since="2021-05-27") public final class ContainerInitializer extends Object
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Utility Methods for manual execution ofServletContainerInitializerwhen using Embedded Jetty.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContainerInitializer.ServletContainerInitializerServletContextListenerDeprecated.
-
Constructor Summary
Constructors Constructor Description ContainerInitializer()Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ContainerInitializer.ServletContainerInitializerServletContextListenerasContextListener(ServletContainerInitializer sci)Deprecated.Utility Method to allow for manual execution ofServletContainerInitializerwhen using Embedded Jetty.
-
-
-
Method Detail
-
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:
ContainerInitializer.ServletContainerInitializerServletContextListener.addClasses(Class[]),ContainerInitializer.ServletContainerInitializerServletContextListener.addClasses(String...)
-
-