Interface ResourceLoader
-
- All Known Implementing Classes:
AbstractResourceLoader
,FileResourceLoader
,JarResourceLoader
,ThreadContextClasspathResourceLoader
,URLResourceLoader
public interface ResourceLoader
- Version:
- $Id$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addSearchPath(java.lang.String path)
PlexusResource
getResource(java.lang.String name)
Returns the resource with the given name.java.io.InputStream
getResourceAsInputStream(java.lang.String name)
Deprecated.UsegetResource(String)
.
-
-
-
Method Detail
-
getResourceAsInputStream
java.io.InputStream getResourceAsInputStream(java.lang.String name) throws ResourceNotFoundException
Deprecated.UsegetResource(String)
.- Throws:
ResourceNotFoundException
-
addSearchPath
void addSearchPath(java.lang.String path)
-
getResource
PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
Returns the resource with the given name.- Parameters:
name
- The resources name.- Returns:
- The resource with the given name.
- Throws:
ResourceNotFoundException
- The resource wasn't found, or wasn't available.
-
-