org.gcube.common.scan
Class DefaultScanner
java.lang.Object
org.gcube.common.scan.DefaultScanner
- All Implemented Interfaces:
- ClasspathScanner
public class DefaultScanner
- extends Object
- implements ClasspathScanner
Default implementation of ClasspathScanner.
- Author:
- Fabio Simeoni
|
Constructor Summary |
DefaultScanner()
Creates an instance over all the URLs visible to the context classloader and its parents, up to the application
classloader. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultScanner
public DefaultScanner()
- Creates an instance over all the URLs visible to the context classloader and its parents, up to the application
classloader.
scan
public Collection<ClasspathResource> scan(ResourceMatcher matcher)
- Description copied from interface:
ClasspathScanner
- Returns
ClasspathResources that match a given ResourceMatcher.
- Specified by:
scan in interface ClasspathScanner
- Parameters:
matcher - the matcher
- Returns:
- the matching resources
main
public static void main(String[] args)
Copyright © 2014. All Rights Reserved.