Interface ResourceLoader
-
- All Known Implementing Classes:
AbstractResourceLoader,FileResourceLoader,JarResourceLoader,ThreadContextClasspathResourceLoader,URLResourceLoader
public interface ResourceLoader- Version:
- $Id$
- Author:
- Trygve Laugstøl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddSearchPath(String path)PlexusResourcegetResource(String name)Returns the resource with the given name.InputStreamgetResourceAsInputStream(String name)Deprecated.UsegetResource(String).
-
-
-
Field Detail
-
ROLE
static final String ROLE
-
-
Method Detail
-
getResourceAsInputStream
InputStream getResourceAsInputStream(String name) throws ResourceNotFoundException
Deprecated.UsegetResource(String).- Throws:
ResourceNotFoundException
-
addSearchPath
void addSearchPath(String path)
-
getResource
PlexusResource getResource(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.
-
-