Class 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 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()