org.sca4j.introspection.java
Interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>

Type Parameters:
A - the type of annotation this processor handles
All Known Implementing Classes:
AbstractAnnotationProcessor

public interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>

Interface for processors that handle annotations attached to Java declarations.

Version:
$Rev: 4286 $ $Date: 2008-05-21 20:56:34 +0100 (Wed, 21 May 2008) $

Method Summary
 java.lang.Class<A> getType()
          Returns the type of annotation this processor handles.
 void visitConstructor(A annotation, java.lang.reflect.Constructor<?> constructor, I implementation, IntrospectionContext context)
          Visit an annotation on a constructor declaration.
 void visitConstructorParameter(A annotation, java.lang.reflect.Constructor<?> constructor, int index, I implementation, IntrospectionContext context)
          Visit an annotation on a constructor parameter declaration.
 void visitField(A annotation, java.lang.reflect.Field field, I implementation, IntrospectionContext context)
          Visit an annotation on a field declaration.
 void visitMethod(A annotation, java.lang.reflect.Method method, I implementation, IntrospectionContext context)
          Visit an annotation on a method declaration.
 void visitMethodParameter(A annotation, java.lang.reflect.Method method, int index, I implementation, IntrospectionContext context)
          Visit an annotation on a method parameter declaration.
 void visitPackage(A annotation, java.lang.Package javaPackage, I implementation, IntrospectionContext context)
          Visit an annotation on a package declaration.
 void visitType(A annotation, java.lang.Class<?> type, I implementation, IntrospectionContext context)
          Visit an annotation on a class or interface declaration.
 

Method Detail

getType

java.lang.Class<A> getType()
Returns the type of annotation this processor handles.

Returns:
the type of annotation this processor handles

visitPackage

void visitPackage(A annotation,
                  java.lang.Package javaPackage,
                  I implementation,
                  IntrospectionContext context)
Visit an annotation on a package declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
javaPackage - the package
implementation - the implementation being introspected
context - the current introspection context

visitType

void visitType(A annotation,
               java.lang.Class<?> type,
               I implementation,
               IntrospectionContext context)
Visit an annotation on a class or interface declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
type - the class or interface
implementation - the implementation being introspected
context - the current introspection context

visitField

void visitField(A annotation,
                java.lang.reflect.Field field,
                I implementation,
                IntrospectionContext context)
Visit an annotation on a field declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
field - the field
implementation - the implementation being introspected
context - the current introspection context

visitMethod

void visitMethod(A annotation,
                 java.lang.reflect.Method method,
                 I implementation,
                 IntrospectionContext context)
Visit an annotation on a method declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
method - the method declaration
implementation - the implementation being introspected
context - the current introspection context

visitMethodParameter

void visitMethodParameter(A annotation,
                          java.lang.reflect.Method method,
                          int index,
                          I implementation,
                          IntrospectionContext context)
Visit an annotation on a method parameter declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
method - the method declaration
index - the index of the method parameter
implementation - the implementation being introspected
context - the current introspection context

visitConstructor

void visitConstructor(A annotation,
                      java.lang.reflect.Constructor<?> constructor,
                      I implementation,
                      IntrospectionContext context)
Visit an annotation on a constructor declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
constructor - the constructor
implementation - the implementation being introspected
context - the current introspection context

visitConstructorParameter

void visitConstructorParameter(A annotation,
                               java.lang.reflect.Constructor<?> constructor,
                               int index,
                               I implementation,
                               IntrospectionContext context)
Visit an annotation on a constructor parameter declaration. If errors or warnings are encountered, they will be collated in the IntrospectionContext.

Parameters:
annotation - the annotation
constructor - the constructor
index - the index of the constructor parameter
implementation - the implementation being introspected
context - the current introspection context


Copyright © 2008-2011 Service Symphony. All Rights Reserved.