Package org.hippoecm.hst.util
Interface ClasspathResourceScanner
-
public interface ClasspathResourceScanner
ClasspathResourceScannerAn implementation of this interface is responsible for collecting classpath resources.
- Version:
- $Id$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
scanClassNamesAnnotatedBy(Class<? extends Annotation> annotationType, boolean matchSuperClass, String... locationPatterns)
Scans classpath from the location specified bylocationPatterns
for all class names which annotates the speifiedannotationType
.
-
-
-
Method Detail
-
scanClassNamesAnnotatedBy
Set<String> scanClassNamesAnnotatedBy(Class<? extends Annotation> annotationType, boolean matchSuperClass, String... locationPatterns)
Scans classpath from the location specified bylocationPatterns
for all class names which annotates the speifiedannotationType
.Note: An implementation is recommended to support
locationPattern
withclasspath*:
prefix at least like the following example:- classpath*:org/examples/beans/**/*.class : For all matching resources from the class path, which are descendants under org/examples/beans/ package.
- classpath*:org/examples/beans/*.class : For all matching resources from the class path, which are one level children under org/examples/beans/ package.
- Parameters:
annotationType
-matchSuperClass
-locationPatterns
-
-
-