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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ID
-
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 JarResourceLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSearchPath(java.lang.String path)
PlexusResource
getResource(java.lang.String source)
Get an InputStream so that the Runtime can build a template with it.void
initialize()
-
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
getResourceAsInputStream
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
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(java.lang.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(java.lang.String path)
- Specified by:
addSearchPath
in interfaceResourceLoader
- Overrides:
addSearchPath
in classAbstractResourceLoader
-
-