Package jakarta.servlet.annotation
Annotation Interface HandlesTypes
This annotation is used to declare the class types that a
ServletContainerInitializer
can handle.- Since:
- Servlet 3.0
- See Also:
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass<?>[]
The classes in which aServletContainerInitializer
has expressed interest.
-
Element Details
-
value
Class<?>[] valueThe classes in which aServletContainerInitializer
has expressed interest.If an implementation of ServletContainerInitializer specifies this annotation, the Servlet container must pass the Set of application classes that extend, implement, or have been annotated with the class types listed by this annotation to the
ServletContainerInitializer.onStartup(java.util.Set<java.lang.Class<?>>, jakarta.servlet.ServletContext)
method of the ServletContainerInitializer (if no matching classes are found, null must be passed instead)- Returns:
- the classes in which
ServletContainerInitializer
has expressed interest
-