Package fr.paris.lutece.util.annotation
Class ScannotationDB
- java.lang.Object
-
- fr.paris.lutece.util.annotation.ScannotationDB
-
- All Implemented Interfaces:
IAnnotationDB
public class ScannotationDB extends java.lang.Object implements IAnnotationDB
UsesAnnotationDBfrom 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 annotationjava.util.Set<java.lang.String>getClassesName(java.lang.String strAnnotationType)Finds classes having the given annotationjava.lang.StringgetFileFilter()Gets the filename filtervoidinit()Scans the WEB-INF/classes and WEB-INF/lib usinggetFileFilter()to filter jars.voidsetFileFilter(java.lang.String strFileFilter)Sets the filename filter
-
-
-
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
-
init
public void init()
Scans the WEB-INF/classes and WEB-INF/lib usinggetFileFilter()to filter jars.- Specified by:
initin interfaceIAnnotationDB
-
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:
getClassesNamein interfaceIAnnotationDB- 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:
getClassesNamein interfaceIAnnotationDB- Parameters:
strAnnotationType- the annotation type name- Returns:
- classes found.
-
-