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

java.lang.Object
  extended by org.sca4j.introspection.java.AbstractAnnotationProcessor<A,I>
All Implemented Interfaces:
AnnotationProcessor<A,I>

public abstract class AbstractAnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
extends java.lang.Object
implements AnnotationProcessor<A,I>

Abstract base class for annotation processors that provides default implementations of the interface methods that simply return.

Version:
$Rev$ $Date$

Constructor Summary
protected AbstractAnnotationProcessor(java.lang.Class<A> type)
          Constructor binding the annotation type.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationProcessor

protected AbstractAnnotationProcessor(java.lang.Class<A> type)
Constructor binding the annotation type.

Parameters:
type - the annotation type
Method Detail

getType

public java.lang.Class<A> getType()
Description copied from interface: AnnotationProcessor
Returns the type of annotation this processor handles.

Specified by:
getType in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Returns:
the type of annotation this processor handles

visitPackage

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

Specified by:
visitPackage in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Parameters:
annotation - the annotation
javaPackage - the package
implementation - the implementation being introspected
context - the current introspection context

visitType

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

Specified by:
visitType in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Parameters:
annotation - the annotation
type - the class or interface
implementation - the implementation being introspected
context - the current introspection context

visitField

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

Specified by:
visitField in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Parameters:
annotation - the annotation
field - the field
implementation - the implementation being introspected
context - the current introspection context

visitMethod

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

Specified by:
visitMethod in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Parameters:
annotation - the annotation
method - the method declaration
implementation - the implementation being introspected
context - the current introspection context

visitMethodParameter

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

Specified by:
visitMethodParameter in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
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

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

Specified by:
visitConstructor in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
Parameters:
annotation - the annotation
constructor - the constructor
implementation - the implementation being introspected
context - the current introspection context

visitConstructorParameter

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

Specified by:
visitConstructorParameter in interface AnnotationProcessor<A extends java.lang.annotation.Annotation,I extends org.sca4j.scdl.Implementation<? extends org.sca4j.scdl.InjectingComponentType>>
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.