Package javax.servlet.annotation
Annotation Type HandlesTypes
-
@Target(TYPE) @Retention(RUNTIME) public @interface HandlesTypesThis annotation is used to declare the class types that aServletContainerInitializercan handle.- Since:
- Servlet 3.0
- See Also:
ServletContainerInitializer
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>[]valueThe classes in which aServletContainerInitializerhas expressed interest.
-
-
-
Element Detail
-
value
java.lang.Class<?>[] value
The classes in which aServletContainerInitializerhas expressed interest.If an implementation of
ServletContainerInitializerspecifies this annotation, the Servlet container must pass theSetof application classes that extend, implement, or have been annotated with the class types listed by this annotation to theServletContainerInitializer.onStartup(java.util.Set<java.lang.Class<?>>, javax.servlet.ServletContext)method of the ServletContainerInitializer (if no matching classes are found,nullmust be passed instead)- Returns:
- the classes in which
ServletContainerInitializerhas expressed interest
-
-