public class ClasspathCollector extends Object
classpath:javax/annotations/*
javax?/annotations/**/*.class
org/apache/tamaya/**/tamayaconfig.properties
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASSPATH_PREFIX
Prefix used for explicitly selecting this collector.
|
| Constructor and Description |
|---|
ClasspathCollector(ClassLoader classLoader)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<URL> |
collectFiles(String expression)
Collect all classpath resources given the expression.
|
protected Collection<URL> |
doFindPathMatchingJarResources(URL rootDirResource,
String subPattern)
Find all resources in jar files that match the given location pattern
via the Ant-style PathMatcher.
|
public static final String CLASSPATH_PREFIX
public ClasspathCollector(ClassLoader classLoader)
classLoader - the class loader to be used, not null.public Collection<URL> collectFiles(String expression)
expression - the expression, not null.protected Collection<URL> doFindPathMatchingJarResources(URL rootDirResource, String subPattern) throws IOException, URISyntaxException
rootDirResource - the root directory as ResourcesubPattern - the sub pattern to match (below the root directory)IOException - in case of I/O errorsURISyntaxException - in case of URL-related errorsJarURLConnectionCopyright © 2014–2016 Apache Software Foundation. All rights reserved.