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 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 Set<String>getClassesName(Class<? extends Annotation> annotationType)Finds the class having the given annotationSet<String>getClassesName(String strAnnotationType)Finds classes having the given annotationStringgetFileFilter()Gets the filename filtervoidinit()Scans the WEB-INF/classes and WEB-INF/lib usinggetFileFilter()to filter jars.voidsetFileFilter(String strFileFilter)Sets the filename filter
-
-
-
Method Detail
-
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 usinggetFileFilter()to filter jars.- Specified by:
initin interfaceIAnnotationDB
-
getClassesName
public Set<String> getClassesName(Class<? extends Annotation> annotationType)
Finds the class having the given annotation- Specified by:
getClassesNamein interfaceIAnnotationDB- Parameters:
annotationType- the annotation- Returns:
- classes found.
-
getClassesName
public Set<String> getClassesName(String strAnnotationType)
Finds classes having the given annotation- Specified by:
getClassesNamein interfaceIAnnotationDB- Parameters:
strAnnotationType- the annotation type name- Returns:
- classes found.
-
-