org.codehaus.plexus.resource.loader
Class JarResourceLoader

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.resource.loader.AbstractResourceLoader
          extended by 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
static 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
JarResourceLoader()
           
 
Method Summary
 InputStream getResourceAsInputStream(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
addSearchPath
 
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
 

Field Detail

ID

public static final String ID
See Also:
Constant Field Values
Constructor Detail

JarResourceLoader

public JarResourceLoader()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

getResourceAsInputStream

public InputStream getResourceAsInputStream(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.


Copyright © 2001-2012 Codehaus. All Rights Reserved.