fr.paris.lutece.util.annotation
Class ScannotationDB

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

public class ScannotationDB
extends Object
implements IAnnotationDB

Uses AnnotationDB from scannotation.

See Also:
init()

Constructor Summary
ScannotationDB()
          Constructor.
 
Method Summary
 Set<String> getClassesName(Class<? extends Annotation> annotationType)
          Finds the class having the given annotation
 Set<String> getClassesName(String strAnnotationType)
          Finds classes having the given annotation
 String getFileFilter()
          Gets the filename filter
 void init()
          Scans the WEB-INF/classes and WEB-INF/lib using getFileFilter() to filter jars.
 void setFileFilter(String strFileFilter)
          Sets the filename filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannotationDB

public ScannotationDB()
Constructor.

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 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.


Copyright © 2014 Mairie de Paris. All Rights Reserved.