org.jboss.wsf.common.reflection
Class AbstractAnnotatedClassProcessor<AO extends java.lang.reflect.AccessibleObject,A extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.jboss.wsf.common.reflection.AccessibleObjectProcessorAdapter<A>
      extended by org.jboss.wsf.common.reflection.AbstractClassProcessor<AO>
          extended by org.jboss.wsf.common.reflection.AbstractAnnotatedClassProcessor<AO,A>
All Implemented Interfaces:
AccessibleObjectProcessor<AO>, AnnotationAware<A>, ClassProcessor<AO>
Direct Known Subclasses:
AnnotatedFieldFinder, AnnotatedMethodFinder

public abstract class AbstractAnnotatedClassProcessor<AO extends java.lang.reflect.AccessibleObject,A extends java.lang.annotation.Annotation>
extends AbstractClassProcessor<AO>
implements AnnotationAware<A>

All annotation aware class processors should extend this class.

Author:
ropalka@redhat.com

Constructor Summary
AbstractAnnotatedClassProcessor(java.lang.Class<A> annotationClass)
          Constructor.
 
Method Summary
 java.lang.Class<A> getAnnotation()
          Returns annotation class associated with object.
 boolean matches(AO accessibleObject)
          By default accessible object always matches all criteria.
 
Methods inherited from class org.jboss.wsf.common.reflection.AbstractClassProcessor
getAccessibleObjects, process
 
Methods inherited from class org.jboss.wsf.common.reflection.AccessibleObjectProcessorAdapter
validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotatedClassProcessor

public AbstractAnnotatedClassProcessor(java.lang.Class<A> annotationClass)
Constructor.

Parameters:
annotationClass - annotation class
Method Detail

matches

public boolean matches(AO accessibleObject)
Description copied from class: AccessibleObjectProcessorAdapter
By default accessible object always matches all criteria.

Specified by:
matches in interface AccessibleObjectProcessor<AO extends java.lang.reflect.AccessibleObject>
Overrides:
matches in class AccessibleObjectProcessorAdapter<AO extends java.lang.reflect.AccessibleObject>
Parameters:
accessibleObject - to check
Returns:
true if accessible object matches the criteria, false otherwise

getAnnotation

public java.lang.Class<A> getAnnotation()
Description copied from interface: AnnotationAware
Returns annotation class associated with object.

Specified by:
getAnnotation in interface AnnotationAware<A extends java.lang.annotation.Annotation>
Returns:
annotation
See Also:
AnnotationAware.getAnnotation()


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.