org.jvnet.hudson.annotation_indexer
Class Index

java.lang.Object
  extended by org.jvnet.hudson.annotation_indexer.Index

public class Index
extends Object

Author:
Kohsuke Kawaguchi

Constructor Summary
Index()
           
 
Method Summary
static Iterable<AnnotatedElement> list(Class<? extends Annotation> type, ClassLoader cl)
          Lists up all the elements annotated by the given annotation.
static
<T extends AnnotatedElement>
Iterable<T>
list(Class<? extends Annotation> type, ClassLoader cl, Class<T> subType)
          Lists up all the elements annotated by the given annotation and of the given AnnotatedElement subtype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Index

public Index()
Method Detail

list

public static <T extends AnnotatedElement> Iterable<T> list(Class<? extends Annotation> type,
                                                            ClassLoader cl,
                                                            Class<T> subType)
                                                 throws IOException
Lists up all the elements annotated by the given annotation and of the given AnnotatedElement subtype.

Throws:
IOException

list

public static Iterable<AnnotatedElement> list(Class<? extends Annotation> type,
                                              ClassLoader cl)
                                       throws IOException
Lists up all the elements annotated by the given annotation.

Throws:
IOException


Copyright © 2004-2012. All Rights Reserved.