org.hippoecm.hst.site.container
Class SpringMetadataReaderClasspathResourceScanner
java.lang.Object
org.hippoecm.hst.site.container.SpringMetadataReaderClasspathResourceScanner
- All Implemented Interfaces:
- ClasspathResourceScanner, org.springframework.context.ResourceLoaderAware
public class SpringMetadataReaderClasspathResourceScanner
- extends Object
- implements ClasspathResourceScanner, org.springframework.context.ResourceLoaderAware
SpringMetadataReaderClasspathResourceScanner
This class implements ClasspathResourceScanner
by leveraging Spring Framework components.
- Version:
- $Id$
Method Summary |
Set<String> |
scanClassNamesAnnotatedBy(Class<? extends Annotation> annotationType,
boolean matchSuperClass,
String... locationPatterns)
Scans classpath from the location specified by locationPatterns
for all class names which annotates the speified annotationType . |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringMetadataReaderClasspathResourceScanner
public SpringMetadataReaderClasspathResourceScanner()
scanClassNamesAnnotatedBy
public Set<String> scanClassNamesAnnotatedBy(Class<? extends Annotation> annotationType,
boolean matchSuperClass,
String... locationPatterns)
- Description copied from interface:
ClasspathResourceScanner
- Scans classpath from the location specified by
locationPatterns
for all class names which annotates the speified annotationType
.
Note: An implementation is recommended to support locationPattern
with classpath*:
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.
- Specified by:
scanClassNamesAnnotatedBy
in interface ClasspathResourceScanner
- Returns:
setResourceLoader
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
- Specified by:
setResourceLoader
in interface org.springframework.context.ResourceLoaderAware
Copyright © 2008-2012 Hippo. All Rights Reserved.