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
- Author:
- Jason van Zyl
-
Field Summary
FieldsFields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
pathsFields inherited from interface org.codehaus.plexus.resource.loader.ResourceLoader
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchPath(String path) getResource(String source) Get an InputStream so that the Runtime can build a template with it.voidMethods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
getResourceAsInputStreamMethods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ID
- See Also:
-
-
Constructor Details
-
JarResourceLoader
public JarResourceLoader()
-
-
Method Details
-
initialize
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException- Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
-
getResource
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
- Specified by:
addSearchPathin interfaceResourceLoader- Overrides:
addSearchPathin classAbstractResourceLoader
-