| Modifier and Type | Class and Description |
|---|---|
| public static interface | ServletContainerInitializerHolder.
Experimental Wrapper mechanism for ServletContainerInitializer objects. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pattern | |
| protected Set | |
| protected Set | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | |
| public | |
| public | ServletContainerInitializerHolder(Class<? extends ServletContainerInitializer> sciClass, Class<?>... startupClasses)
|
| public | |
| public | ServletContainerInitializerHolder(Source source, ServletContainerInitializer sci, Class<?>... startupClasses)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | addStartupClasses(String...
the names of classes which should be passed to the SCI onStartup method names)Add the names of classes which should be passed to the SCI onStartup method. |
| public void | addStartupClasses(Class<?>...
classes that should be passed to the SCI onStartup method clazzes)Add classes that should be passed to the SCI onStartup method. |
| public void | doStart()
Overrides org. Method to override to start the lifecycle |
| public static ServletContainerInitializerHolder | Returns: a new ServletContainerInitializerHolder instance populated by the info in the stringthe classloader to use to load the startup classes loader, String the stringified representation of the ServletContainerInitializerHolder string)Re-inflate a stringified ServletContainerInitializerHolder. |
| protected Set | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| __pattern | back to summary |
|---|---|
| public static final Pattern __pattern | |
| _startupClasses | back to summary |
|---|---|
| protected Set<Class<?>> _startupClasses | |
| _startupClassNames | back to summary |
|---|---|
| protected Set<String> _startupClassNames | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| protected ServletContainerInitializerHolder(Source source) | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| public ServletContainerInitializerHolder() | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| public ServletContainerInitializerHolder(Class<? extends ServletContainerInitializer> sciClass) | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| public ServletContainerInitializerHolder(Class<? extends ServletContainerInitializer> sciClass, Class<?>... startupClasses) | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| public ServletContainerInitializerHolder(ServletContainerInitializer sci, Class<?>... startupClasses) | |
| ServletContainerInitializerHolder | back to summary |
|---|---|
| public ServletContainerInitializerHolder(Source source, ServletContainerInitializer sci, Class<?>... startupClasses) | |
| addStartupClasses | back to summary |
|---|---|
| public void addStartupClasses(String... names) Add the names of classes which should be passed to the SCI onStartup method.
| |
| addStartupClasses | back to summary |
|---|---|
| public void addStartupClasses(Class<?>... clazzes) Add classes that should be passed to the SCI onStartup method.
| |
| doStart | back to summary |
|---|---|
| public void doStart() throws Exception Overrides org. Doc from org. Method to override to start the lifecycle | |
| fromString | back to summary |
|---|---|
| public static ServletContainerInitializerHolder fromString(ClassLoader loader, String string) Re-inflate a stringified ServletContainerInitializerHolder.
| |
| resolveStartupClasses | back to summary |
|---|---|
| protected Set | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
Beans in ServletContextHandler or WebAppContext that implement this interface
will be called to optionally wrap any newly created ServletContainerInitializers
(before their onStartup method is called)
| Modifier and Type | Method and Description |
|---|---|
| public ServletContainerInitializer | Returns: the sci(extend fromWrapper if you do wrap the ServletContainerInitializer)the ServletContainerInitializer being passed in. sci)Optionally wrap the ServletContainerInitializer. |
| wrapServletContainerInitializer | back to summary |
|---|---|
| public ServletContainerInitializer wrapServletContainerInitializer(ServletContainerInitializer sci) Optionally wrap the ServletContainerInitializer.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ServletContainerInitializer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ServletContainerInitializer | |
| public void | onStartup(Set<Class<?>>
the Set of application classes that extend, implement, or have been annotated with the class types specified
by the c, ServletContext HandlesTypes annotation, or null if there are no
matches, or this ServletContainerInitializer has not been annotated with HandlesTypesthe ServletContext of the web application that is being started and in which the classes
contained in c were found ctx)Implements jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. |
| public String |
| _wrappedSCI | back to summary |
|---|---|
| private final ServletContainerInitializer _wrappedSCI | |
| Wrapper | back to summary |
|---|---|
| public Wrapper(ServletContainerInitializer sci) | |
| getWrapped | back to summary |
|---|---|
| public ServletContainerInitializer getWrapped() Implements org.
| |
| onStartup | back to summary |
|---|---|
| public void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException Implements jakarta. Doc from jakarta. Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext. If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |