org.codehaus.plexus.resource.loader
Class JarResourceLoader
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.resource.loader.AbstractResourceLoader
org.codehaus.plexus.resource.loader.JarResourceLoader
- All Implemented Interfaces:
- org.codehaus.plexus.logging.LogEnabled, ResourceLoader
public class JarResourceLoader
- 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
JarResourceLoader
public JarResourceLoader()
initialize
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
getResource
public PlexusResource getResource(String source)
throws ResourceNotFoundException
- Get an InputStream so that the Runtime can build a template with it.
- Parameters:
source
- name of template to get
- Returns:
- InputStream containing the template
- Throws:
ResourceNotFoundException
- if template not found in the file template path.
addSearchPath
public void addSearchPath(String path)
- Specified by:
addSearchPath
in interface ResourceLoader
- Overrides:
addSearchPath
in class AbstractResourceLoader
Copyright © 2001-2011 Codehaus. All Rights Reserved.