org.apache.velocity.runtime.resource
public interface ResourceManager
Version: $Id: ResourceManager.java,v 1.34.4.1 2004/03/03 23:23:01 geirm Exp $
Field Summary | |
---|---|
static int | RESOURCE_CONTENT
A static content resource. |
static int | RESOURCE_TEMPLATE
A template resources. |
Method Summary | |
---|---|
String | getLoaderNameForResource(String resourceName)
Determines is a template exists, and returns name of the loader that
provides it. |
Resource | getResource(String resourceName, int resourceType, String encoding)
Gets the named resource. |
void | initialize(RuntimeServices rs)
Initialize the ResourceManager. |
Parameters: resourceName Name of template or content resource
Returns: class name of loader than can provide it
Template
to RESOURCE_TEMPLATE
).
Parameters: resourceName The name of the resource to retrieve. resourceType The type of resource (RESOURCE_TEMPLATE
,
RESOURCE_CONTENT
, etc.). encoding The character encoding to use.
Returns: Resource with the template parsed and ready.
Throws: ResourceNotFoundException if template not found from any available source. ParseErrorException if template cannot be parsed due to syntax (or other) error. Exception if a problem in parse