Class ScannotationDB

  • All Implemented Interfaces:
    IAnnotationDB

    public class ScannotationDB
    extends java.lang.Object
    implements IAnnotationDB
    Uses AnnotationDB from scannotation.
    See Also:
    init()
    • Constructor Summary

      Constructors 
      Constructor Description
      ScannotationDB()
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Set<java.lang.String> getClassesName​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
      Finds the class having the given annotation
      java.util.Set<java.lang.String> getClassesName​(java.lang.String strAnnotationType)
      Finds classes having the given annotation
      java.lang.String getFileFilter()
      Gets the filename filter
      void init()
      Scans the WEB-INF/classes and WEB-INF/lib using getFileFilter() to filter jars.
      void setFileFilter​(java.lang.String strFileFilter)
      Sets the filename filter
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScannotationDB

        public ScannotationDB()
        Constructor.
    • Method Detail

      • getFileFilter

        public java.lang.String getFileFilter()
        Gets the filename filter
        Returns:
        the filename filter
      • setFileFilter

        public void setFileFilter​(java.lang.String strFileFilter)
        Sets the filename filter
        Parameters:
        strFileFilter - the filename filter
      • getClassesName

        public java.util.Set<java.lang.String> getClassesName​(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
        Finds the class having the given annotation
        Specified by:
        getClassesName in interface IAnnotationDB
        Parameters:
        annotationType - the annotation
        Returns:
        classes found.
      • getClassesName

        public java.util.Set<java.lang.String> getClassesName​(java.lang.String strAnnotationType)
        Finds classes having the given annotation
        Specified by:
        getClassesName in interface IAnnotationDB
        Parameters:
        strAnnotationType - the annotation type name
        Returns:
        classes found.