org.eclipse.jetty.annotations
类 ContainerInitializerAnnotationHandler

java.lang.Object
  继承者 org.eclipse.jetty.annotations.ContainerInitializerAnnotationHandler
所有已实现的接口:
AnnotationParser.DiscoverableAnnotationHandler, AnnotationParser.Handler

public class ContainerInitializerAnnotationHandler
extends Object
implements AnnotationParser.DiscoverableAnnotationHandler

ContainerInitializerAnnotationHandler Discovers classes that contain the specified annotation, either at class or method level. The specified annotation is derived from an @HandlesTypes on a ServletContainerInitializer class.


构造方法摘要
ContainerInitializerAnnotationHandler(ContainerInitializer initializer, Class annotation)
           
 
方法摘要
 String getAnnotationName()
          Get the name of the annotation processed by this handler.
 ContainerInitializer getContainerInitializer()
           
 void handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotationName, List<AnnotationParser.Value> values)
          Handle finding a class that is annotated with the annotation we were constructed with.
 void handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation, List<AnnotationParser.Value> values)
          Process an annotation that was discovered on a field
 void handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation, List<AnnotationParser.Value> values)
          Process an annotation that was discovered on a method
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ContainerInitializerAnnotationHandler

public ContainerInitializerAnnotationHandler(ContainerInitializer initializer,
                                             Class annotation)
方法详细信息

handleClass

public void handleClass(String className,
                        int version,
                        int access,
                        String signature,
                        String superName,
                        String[] interfaces,
                        String annotationName,
                        List<AnnotationParser.Value> values)
Handle finding a class that is annotated with the annotation we were constructed with.

指定者:
接口 AnnotationParser.DiscoverableAnnotationHandler 中的 handleClass
另请参见:
AnnotationParser.DiscoverableAnnotationHandler.handleClass(java.lang.String, int, int, java.lang.String, java.lang.String, java.lang.String[], java.lang.String, java.util.List)

handleField

public void handleField(String className,
                        String fieldName,
                        int access,
                        String fieldType,
                        String signature,
                        Object value,
                        String annotation,
                        List<AnnotationParser.Value> values)
从接口 AnnotationParser.DiscoverableAnnotationHandler 复制的描述
Process an annotation that was discovered on a field

指定者:
接口 AnnotationParser.DiscoverableAnnotationHandler 中的 handleField

handleMethod

public void handleMethod(String className,
                         String methodName,
                         int access,
                         String params,
                         String signature,
                         String[] exceptions,
                         String annotation,
                         List<AnnotationParser.Value> values)
从接口 AnnotationParser.DiscoverableAnnotationHandler 复制的描述
Process an annotation that was discovered on a method

指定者:
接口 AnnotationParser.DiscoverableAnnotationHandler 中的 handleMethod

getAnnotationName

public String getAnnotationName()
从接口 AnnotationParser.DiscoverableAnnotationHandler 复制的描述
Get the name of the annotation processed by this handler. Can be null

指定者:
接口 AnnotationParser.DiscoverableAnnotationHandler 中的 getAnnotationName
返回:

getContainerInitializer

public ContainerInitializer getContainerInitializer()


Copyright © 2013. All Rights Reserved.