org.jboss.wsf.common.reflection
Class AnnotatedMethodFinder<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<java.lang.reflect.Method,A>
              extended by org.jboss.wsf.common.reflection.AnnotatedMethodFinder<A>
All Implemented Interfaces:
AccessibleObjectProcessor<java.lang.reflect.Method>, AnnotationAware<A>, ClassProcessor<java.lang.reflect.Method>
Direct Known Subclasses:
EJBMethodFinder, PostConstructMethodFinder, PreDestroyMethodFinder, ResourceMethodFinder

public class AnnotatedMethodFinder<A extends java.lang.annotation.Annotation>
extends AbstractAnnotatedClassProcessor<java.lang.reflect.Method,A>

Finder that looks for methods annotated with specified annotation. The matching methods and collection of matching methods can be validated in subclasses.

Author:
ropalka@redhat.com

Constructor Summary
AnnotatedMethodFinder(java.lang.Class<A> annotationClass)
          Constructor.
 
Method Summary
 java.lang.reflect.Method[] getAccessibleObjects(java.lang.Class<?> clazz)
          All subclasses have to implement this method.
 
Methods inherited from class org.jboss.wsf.common.reflection.AbstractAnnotatedClassProcessor
getAnnotation, matches
 
Methods inherited from class org.jboss.wsf.common.reflection.AbstractClassProcessor
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

AnnotatedMethodFinder

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

Parameters:
annotationClass - annotation class
Method Detail

getAccessibleObjects

public final java.lang.reflect.Method[] getAccessibleObjects(java.lang.Class<?> clazz)
Description copied from class: AbstractClassProcessor
All subclasses have to implement this method.

Specified by:
getAccessibleObjects in class AbstractClassProcessor<java.lang.reflect.Method>
Parameters:
clazz - to get accessible objects from.
Returns:
array of accessible objects


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