public interface PackageScanResourceResolver extends StaticService
PackageScanClassResolver
Modifier and Type | Method and Description |
---|---|
void |
addClassLoader(ClassLoader classLoader)
Adds the class loader to the existing loaders
|
default Collection<String> |
findResourceNames(String location)
Deprecated.
|
Collection<Resource> |
findResources(String location)
Finds the resources from the given location.
|
default Collection<InputStream> |
findResourceStreams(String location)
Deprecated.
|
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)
Collection<Resource> findResources(String location) throws Exception
location
- the location (support ANT style patterns, eg routes/camel-*.xml)Exception
- can be thrown during scanning for resources.@Deprecated default Collection<String> findResourceNames(String location) throws Exception
findResources(String)
location
- the location (support ANT style patterns, eg routes/camel-*.xml)Exception
- can be thrown during scanning for resources.@Deprecated default Collection<InputStream> findResourceStreams(String location) throws Exception
findResources(String)
location
- the location (support ANT style patterns, eg routes/camel-*.xml)Exception
- can be thrown during scanning for resources.Apache Camel