Class URLResourceLoader
- java.lang.Object
-
- org.codehaus.plexus.logging.AbstractLogEnabled
-
- org.codehaus.plexus.resource.loader.AbstractResourceLoader
-
- org.codehaus.plexus.resource.loader.URLResourceLoader
-
- All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled
,ResourceLoader
public class URLResourceLoader extends AbstractResourceLoader
- Author:
- Jason van Zyl
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
protected java.util.Map
templateRoots
-
Fields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
paths
-
Fields inherited from interface org.codehaus.plexus.resource.loader.ResourceLoader
ROLE
-
-
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 an InputStream so that the Runtime can build a template with it.-
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
addSearchPath, getResourceAsInputStream
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
templateRoots
protected java.util.Map templateRoots
-
-
Method Detail
-
getResource
public PlexusResource getResource(java.lang.String name) throws ResourceNotFoundException
Get an InputStream so that the Runtime can build a template with it.- Parameters:
name
- name of template to fetch bytestream of- Returns:
- InputStream containing the template
- Throws:
ResourceNotFoundException
- if template not found in the file template path.
-
-