@Component(role=ResourceLoader.class, hint="classloader") public class ThreadContextClasspathResourceLoader extends AbstractResourceLoader
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
paths
ROLE
Constructor and Description |
---|
ThreadContextClasspathResourceLoader() |
Modifier and Type | Method and Description |
---|---|
PlexusResource |
getResource(java.lang.String name)
Returns the resource with the given name.
|
addSearchPath, getResourceAsInputStream
public static final java.lang.String ID
public ThreadContextClasspathResourceLoader()
public PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
ResourceLoader
name
- The resources name.ResourceNotFoundException
- The resource wasn't found, or wasn't available.