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 java.lang.Object
implements IAnnotationDB

Uses AnnotationDB from scannotation.

See Also:
init()

Constructor Summary
ScannotationDB()
          Constructor.
 
Method Summary
 java.util.Set<java.lang.String> getClassesName(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
          Finds the class having the given annotation
 java.util.Set<java.lang.String> getClassesName(java.lang.String strAnnotationType)
          Finds classes having the given annotation
 java.lang.String getFileFilter()
          Gets the filename filter
 void init()
          Scans the WEB-INF/classes and WEB-INF/lib using getFileFilter() to filter jars.
 void setFileFilter(java.lang.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 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 using getFileFilter() to filter jars.

Specified by:
init in interface IAnnotationDB

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:
getClassesName in interface IAnnotationDB
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:
getClassesName in interface IAnnotationDB
Parameters:
strAnnotationType - the annotation type name
Returns:
classes found.


Copyright © 2011 Mairie de Paris. All Rights Reserved.