com.atlassian.jira.functest.config
Class AnnotationFinder<A extends Annotation>

java.lang.Object
  extended by com.atlassian.jira.functest.config.AnnotationFinder<A>

public class AnnotationFinder<A extends Annotation>
extends Object

Finds all annotation instances of given type in a given set of classes. Looks up annotations of classes and public methods.

Since:
v4.3

Constructor Summary
AnnotationFinder(Iterable<Class<?>> classes, Class<A> annotationClass)
           
 
Method Summary
 Map<AnnotatedElement,A> findAll()
           
static
<B extends Annotation>
AnnotationFinder<B>
newFinder(Iterable<Class<?>> classes, Class<B> annotationClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationFinder

public AnnotationFinder(Iterable<Class<?>> classes,
                        Class<A> annotationClass)
Method Detail

newFinder

public static <B extends Annotation> AnnotationFinder<B> newFinder(Iterable<Class<?>> classes,
                                                                   Class<B> annotationClass)

findAll

public Map<AnnotatedElement,A> findAll()


Copyright © 2002-2014 Atlassian. All Rights Reserved.