@Component(role=ResourceLoader.class, hint="jar", instantiationStrategy="per-lookup") public class JarResourceLoader extends AbstractResourceLoader
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
pathsROLE| 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() |
getResourceAsInputStreampublic static final String ID
public void initialize()
throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationExceptionpublic 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 ResourceLoaderaddSearchPath in class AbstractResourceLoaderCopyright © 2001–2017 Codehaus Plexus. All rights reserved.