Class ScannotationDB

java.lang.Object
fr.paris.lutece.util.annotation.ScannotationDB
All Implemented Interfaces:
IAnnotationDB

public class ScannotationDB extends Object implements IAnnotationDB
Uses AnnotationDB from scannotation.
See Also:
  • Constructor Details

    • ScannotationDB

      public ScannotationDB()
      Constructor.
  • Method Details

    • getFileFilter

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

      public void setFileFilter(String strFileFilter)
      Sets the filename filter
      Parameters:
      strFileFilter - the filename filter
    • init

      public void init()
      Scans the WEB-INF/classes and WEB-INF/lib using getFileFilter() to filter jars.
      Specified by:
      init in interface IAnnotationDB
    • getClassesName

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

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