Package fr.paris.lutece.util.annotation
Class ScannotationDB
java.lang.Object
fr.paris.lutece.util.annotation.ScannotationDB
- All Implemented Interfaces:
IAnnotationDB
Uses
AnnotationDB from scannotation.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassesName(Class<? extends Annotation> annotationType) Finds the class having the given annotationgetClassesName(String strAnnotationType) Finds classes having the given annotationGets the filename filtervoidinit()Scans the WEB-INF/classes and WEB-INF/lib usinggetFileFilter()to filter jars.voidsetFileFilter(String strFileFilter) Sets the filename filter
-
Constructor Details
-
ScannotationDB
public ScannotationDB()Constructor.
-
-
Method Details
-
getFileFilter
Gets the filename filter- Returns:
- the filename filter
-
setFileFilter
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
Finds the class having the given annotation- Specified by:
getClassesNamein interfaceIAnnotationDB- Parameters:
annotationType- the annotation- Returns:
- classes found.
-
getClassesName
Finds classes having the given annotation- Specified by:
getClassesNamein interfaceIAnnotationDB- Parameters:
strAnnotationType- the annotation type name- Returns:
- classes found.
-