public class JarResourceLoader extends AbstractResourceLoader
Modifier and Type | Field and Description |
---|---|
static String |
ID |
paths
ROLE
Constructor and Description |
---|
JarResourceLoader() |
Modifier and Type | Method and Description |
---|---|
void |
addSearchPath(String path) |
PlexusResource |
getResource(String source)
Get an InputStream so that the Runtime can build a template with it.
|
void |
initialize() |
getResourceAsInputStream
public static final String ID
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public PlexusResource getResource(String source) throws ResourceNotFoundException
source
- name of template to getResourceNotFoundException
- if template not found in the file template path.public void addSearchPath(String path)
addSearchPath
in interface ResourceLoader
addSearchPath
in class AbstractResourceLoader
Copyright © 2001–2019 Codehaus Plexus. All rights reserved.