org.milyn.classpath
Class IsAnnotationPresentFilter

java.lang.Object
  extended by org.milyn.classpath.IsAnnotationPresentFilter
All Implemented Interfaces:
Filter

public class IsAnnotationPresentFilter
extends Object

Classpath filter for finding classes that are annotated with a particular annotation.

Author:
tom.fennelly@gmail.com

Constructor Summary
IsAnnotationPresentFilter(Class<? extends Annotation> searchType)
           
IsAnnotationPresentFilter(Class<? extends Annotation> searchType, String[] ignoreList, String[] includeList)
           
 
Method Summary
protected  boolean addClass(Class<?> clazz)
           
 void filter(String resourceName)
          Classpath resource filter method.
 List<Class> getClasses()
           
 boolean isIgnorable(String resourceName)
          Is this resource ignorable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IsAnnotationPresentFilter

public IsAnnotationPresentFilter(Class<? extends Annotation> searchType)

IsAnnotationPresentFilter

public IsAnnotationPresentFilter(Class<? extends Annotation> searchType,
                                 String[] ignoreList,
                                 String[] includeList)
Method Detail

addClass

protected boolean addClass(Class<?> clazz)

filter

public void filter(String resourceName)
Description copied from interface: Filter
Classpath resource filter method.

Specified by:
filter in interface Filter
Parameters:
resourceName - The classpath resource file name. Needs to be converted to a proper class name

isIgnorable

public boolean isIgnorable(String resourceName)
Description copied from interface: Filter
Is this resource ignorable.

Specified by:
isIgnorable in interface Filter
Returns:

getClasses

public List<Class> getClasses()


Copyright © 2018. All rights reserved.