org.codehaus.plexus.resource.loader
Interface ResourceLoader

All Known Implementing Classes:
AbstractResourceLoader, FileResourceLoader, JarResourceLoader, ThreadContextClasspathResourceLoader, URLResourceLoader

public interface ResourceLoader

Version:
$Id: ResourceLoader.java 7981 2008-12-28 11:08:32Z bentmann $
Author:
Trygve Laugstøl

Field Summary
static String ROLE
           
 
Method Summary
 void addSearchPath(String path)
           
 PlexusResource getResource(String name)
          Returns the resource with the given name.
 InputStream getResourceAsInputStream(String name)
          Deprecated. Use getResource(String).
 

Field Detail

ROLE

static final String ROLE
Method Detail

getResourceAsInputStream

InputStream getResourceAsInputStream(String name)
                                     throws ResourceNotFoundException
Deprecated. Use getResource(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.


Copyright © 2001-2011 Codehaus. All Rights Reserved.