public interface PackageScanResourceResolver extends StaticService
PackageScanClassResolver
Modifier and Type | Method and Description |
---|---|
void |
addClassLoader(ClassLoader classLoader)
Adds the class loader to the existing loaders
|
Set<String> |
findResourceNames(String location)
Finds the resource names from the given location.
|
Set<InputStream> |
findResources(String location)
Finds the resources from the given location.
|
Set<ClassLoader> |
getClassLoaders()
Gets the ClassLoader instances that should be used when scanning for resources.
|
void |
setAcceptableSchemes(String schemes)
To specify a set of accepted schemas to use for loading resources as URL connections
(besides http and https schemas)
|
Set<ClassLoader> getClassLoaders()
addClassLoader(ClassLoader)
method if you want to add new classloaders
to the class loaders list.void addClassLoader(ClassLoader classLoader)
classLoader
- the loader to addvoid setAcceptableSchemes(String schemes)
Set<InputStream> findResources(String location) throws Exception
location
- the location (support ANT style patterns, eg routes/camel-*.xml)Exception
- can be thrown during scanning for resources.Set<String> findResourceNames(String location) throws Exception
location
- the location (support ANT style patterns, eg routes/camel-*.xml)Exception
- can be thrown during scanning for resources.Apache Camel