public interface ServletContainerInitializer
SCI processing is performed regardless of the setting of metadata-complete. SCI processing can be controlled per JAR file via fragment ordering. If absolute ordering is defined, then only the JARs included in the ordering will be processed for SCIs. To disable SCI processing completely, an empty absolute ordering may be defined.
SCIs register an interest in annotations (class, method or field) and/or
types via the HandlesTypes
annotation which
is added to the class.
Modifier and Type | Method and Description |
---|---|
void |
onStartup(Set<Class<?>> c,
ServletContext ctx)
Receives notification during startup of a web application of the classes
within the web application that matched the criteria defined via the
HandlesTypes annotation. |
void onStartup(Set<Class<?>> c, ServletContext ctx) throws ServletException
HandlesTypes
annotation.c
- The (possibly null) set of classes that met the specified
criteriactx
- The ServletContext of the web application in which the
classes were discoveredServletException
- If an error occursCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.