org.gcube.common.scan
Class DefaultScanner

java.lang.Object
  extended by 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.
 
Method Summary
static void main(String[] args)
           
 Collection<ClasspathResource> scan(ResourceMatcher matcher)
          Returns ClasspathResources that match a given ResourceMatcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScanner

public DefaultScanner()
Creates an instance over all the URLs visible to the context classloader and its parents, up to the application classloader.

Method Detail

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.