Class ContainerInitializer
java.lang.Object
org.eclipse.jetty.servlet.listener.ContainerInitializer
Utility Methods for manual execution of 
ServletContainerInitializer when
 using Embedded Jetty.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionasContextListener(jakarta.servlet.ServletContainerInitializer sci) Utility Method to allow for manual execution ofServletContainerInitializerwhen using Embedded Jetty. 
- 
Constructor Details
- 
ContainerInitializer
public ContainerInitializer() 
 - 
 - 
Method Details
- 
asContextListener
public static ContainerInitializer.ServletContainerInitializerServletContextListener asContextListener(jakarta.servlet.ServletContainerInitializer sci) 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:
 
 
 -