Class URLResourceLoader
- java.lang.Object
-
- org.codehaus.plexus.resource.loader.AbstractResourceLoader
-
- org.codehaus.plexus.resource.loader.URLResourceLoader
-
- All Implemented Interfaces:
ResourceLoader
@Named("url") public class URLResourceLoader extends AbstractResourceLoader
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
private static org.slf4j.Logger
LOGGER
protected java.util.Map<java.lang.String,java.lang.String>
templateRoots
-
Fields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
paths
-
-
Constructor Summary
Constructors Constructor Description URLResourceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlexusResource
getResource(java.lang.String name)
Get anPlexusResource
with given name.-
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
addSearchPath, getResourceAsInputStream
-
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
templateRoots
protected java.util.Map<java.lang.String,java.lang.String> templateRoots
-
-
Method Detail
-
getResource
public PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
Get anPlexusResource
with given name.- Parameters:
name
- name of resource to fetch byte stream of.- Returns:
- PlexusResource containing the resource.
- Throws:
ResourceNotFoundException
- if resource not found.
-
-