org.codehaus.plexus.resource.loader
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
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final String ID
- See Also:
- Constant Field Values
templateRoots
protected Map templateRoots
URLResourceLoader
public URLResourceLoader()
getResource
public PlexusResource getResource(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.
Copyright © 2001-2011 Codehaus. All Rights Reserved.