Package com.bc.ceres.core
Class DefaultResourceLocator
java.lang.Object
com.bc.ceres.core.ResourceLocator
com.bc.ceres.core.DefaultResourceLocator
The default resource locator. Locates resources using the current context class loader.
Can be easily subclassed by overriding
getResourceClassLoader()
in order to return an appropriate class loader.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ClassLoader
The default implementation returns the context class loader.locateResources
(String name) Locates all resources with the given name.protected Path
Methods inherited from class com.bc.ceres.core.ResourceLocator
getResources
-
Field Details
-
LOG
-
-
Constructor Details
-
DefaultResourceLocator
public DefaultResourceLocator()
-
-
Method Details
-
locateResources
Description copied from class:ResourceLocator
Locates all resources with the given name.- Specified by:
locateResources
in classResourceLocator
- Parameters:
name
- The resource name- Returns:
- The collection of all resources located
-
getResourceClassLoader
The default implementation returns the context class loader.- Returns:
- the class loader used to load resources.
-
toPath
- Throws:
IOException
-