public interface ResourceManager
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
RESOURCE_CONTENT
A static content resource.
|
static int |
RESOURCE_ES |
static int |
RESOURCE_SQL |
static int |
RESOURCE_TEMPLATE
A template resources.
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getLoaderNameForResource(java.lang.String resourceName)
Determines is a template exists, and returns name of the loader that
provides it.
|
Resource |
getResource(java.lang.String resourceName,
int resourceType,
java.lang.String encoding)
Gets the named resource.
|
void |
initialize(RuntimeServices rs)
Initialize the ResourceManager.
|
void |
initTemplate(Resource template,
java.lang.String encoding) |
static final int RESOURCE_TEMPLATE
static final int RESOURCE_CONTENT
static final int RESOURCE_SQL
static final int RESOURCE_ES
void initialize(RuntimeServices rs)
rs - Resource getResource(java.lang.String resourceName, int resourceType, java.lang.String encoding) throws ResourceNotFoundException, ParseErrorException
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.void initTemplate(Resource template, java.lang.String encoding)
java.lang.String getLoaderNameForResource(java.lang.String resourceName)
resourceName - Name of template or content resource