Package org.hippoecm.hst.util
Interface ClasspathResourceScanner
public interface ClasspathResourceScanner
ClasspathResourceScanner
An implementation of this interface is responsible for collecting classpath resources.
- Version:
- $Id$
-
Method Summary
Modifier and TypeMethodDescriptionscanClassNamesAnnotatedBy
(Class<? extends Annotation> annotationType, boolean matchSuperClass, String... locationPatterns) Scans classpath from the location specified bylocationPatterns
for all class names which annotates the speifiedannotationType
.
-
Method Details
-
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
-
-