public class RegisteringContainerInitializer extends SCIWrapper
The ServletContainerInitializer that's supposed to collect all the servlets/filters/listeners
that may have beed dynamically added when other SCIs were called and actually register them using full Pax Web
procedure of going through the ServerModel, batches and server
controllers.
This SCI is supposed to be called within Pax Web configuration thread and call back to the controller. It's
quite complex flow, as the SCI itself is called from within ensure container started method inside
the server wrapper. So the server starts, calls the SCIs, which may potentially add servlets, these servlets (and
filters and listeners too) turned into ServletModels are then
added to batches, passed to the bundle-scoped WebContainer instances and
eventually sent to ServerController again, which configures Jetty/Tomcat/
Undertow contexts (without trying to start them again!).
| Constructor and Description |
|---|
RegisteringContainerInitializer(OsgiServletContext osgiServletContext,
DynamicRegistrations registrations) |
| Modifier and Type | Method and Description |
|---|---|
void |
onStartup()
No-arg version that uses the classes from the model itself.
|
void |
onStartup(Set<Class<?>> c,
javax.servlet.ServletContext ctx) |
compareTo, getModelpublic RegisteringContainerInitializer(OsgiServletContext osgiServletContext, DynamicRegistrations registrations)
public void onStartup()
throws javax.servlet.ServletException
SCIWrapperonStartup in class SCIWrapperjavax.servlet.ServletExceptionpublic void onStartup(Set<Class<?>> c, javax.servlet.ServletContext ctx) throws javax.servlet.ServletException
onStartup in interface javax.servlet.ServletContainerInitializeronStartup in class SCIWrapperjavax.servlet.ServletExceptionCopyright © 2006–2024 OPS4J - Open Participation Software for Java. All rights reserved.