org.codehaus.plexus.resource.loader
Class URLResourceLoader

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.URLResourceLoader
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, ResourceLoader

public class URLResourceLoader
extends AbstractResourceLoader

Author:
Jason van Zyl

Field Summary
static java.lang.String ID
           
protected  java.util.Map templateRoots
           
 
Fields inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
paths
 
Fields inherited from interface org.codehaus.plexus.resource.loader.ResourceLoader
ROLE
 
Constructor Summary
URLResourceLoader()
           
 
Method Summary
 PlexusResource getResource(java.lang.String name)
          Get an InputStream so that the Runtime can build a template with it.
 
Methods inherited from class org.codehaus.plexus.resource.loader.AbstractResourceLoader
addSearchPath, getResourceAsInputStream
 
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 java.lang.String ID
See Also:
Constant Field Values

templateRoots

protected java.util.Map templateRoots
Constructor Detail

URLResourceLoader

public URLResourceLoader()
Method Detail

getResource

public PlexusResource getResource(java.lang.String name)
                           throws ResourceNotFoundException
Get an InputStream so that the Runtime can build a template with it.

Parameters:
name - name of template to fetch bytestream of
Returns:
InputStream containing the template
Throws:
ResourceNotFoundException - if template not found in the file template path.


Copyright © 2001-2010 Codehaus. All Rights Reserved.