org.hippoecm.hst.site.container
Class SpringMetadataReaderClasspathResourceScanner

java.lang.Object
  extended by 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$

Constructor Summary
SpringMetadataReaderClasspathResourceScanner()
           
 
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
 

Constructor Detail

SpringMetadataReaderClasspathResourceScanner

public SpringMetadataReaderClasspathResourceScanner()
Method Detail

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:

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.