javax.servlet.annotation
注释类型 HandlesTypes


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface HandlesTypes

This annotation is used to declare the class types that a ServletContainerInitializer can handle.

从以下版本开始:
Servlet 3.0
另请参见:
ServletContainerInitializer

必需元素摘要
 Class[] value
          The classes in which a ServletContainerInitializer has expressed interest.
 

元素详细信息

value

public abstract Class[] value
The classes in which a ServletContainerInitializer 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>, javax.servlet.ServletContext) method of the ServletContainerInitializer (if no matching classes are found, null must be passed instead)



Copyright © 2013. All Rights Reserved.