|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceManager
Class to manage the text resource for the Velocity Runtime.
| 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. |
| Field Detail |
|---|
static final int RESOURCE_TEMPLATE
static final int RESOURCE_CONTENT
| Method Detail |
|---|
void initialize(RuntimeServices rs)
throws Exception
Exception
Resource getResource(String resourceName,
int resourceType,
String encoding)
throws ResourceNotFoundException,
ParseErrorException,
Exception
Template to RESOURCE_TEMPLATE).
resourceName - The name of the resource to retrieve.resourceType - The type of resource (RESOURCE_TEMPLATE,
RESOURCE_CONTENT, etc.).encoding - The character encoding to use.
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 parseString getLoaderNameForResource(String resourceName)
resourceName - Name of template or content resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||