Свойство | Type | Description | |
---|---|---|---|
globalCache | ResourceCache | ||
resourceLoaders | |||
runtimeServices | IRuntimeServices |
Méthode | Description | |
---|---|---|
GetLoaderNameForResource ( String resourceName ) : String |
Determines is a template exists, and returns name of the loader that provides it. This is a slightly less hokey way to support the Velocity.templateExists() utility method, which was broken when per-template encoding was introduced. We can revisit this.
|
|
GetResource ( String resourceName, ResourceType resourceType ) : Resource |
Gets the named resource. Returned class type corresponds to specified type (i.e.
|
|
GetResource ( string resourceName, ResourceType resourceType, string encoding ) : Resource |
Gets the named resource. Returned class type corresponds to specified type (i.e.
|
|
Initialize ( IRuntimeServices rs ) : void |
Initialize the ResourceManager.
|
|
ResourceManagerImpl ( ) : System |
Méthode | Description | |
---|---|---|
LoadResource ( String resourceName, ResourceType resourceType, String encoding ) : Resource |
Loads a resource from the current set of resource loaders
|
|
RefreshResource ( Resource resource, String encoding ) : void |
Takes an existing resource, and 'refreshes' it. This generally means that the source of the resource is checked for changes according to some cache/check algorithm and if the resource changed, then the resource data is reloaded and re-parsed. *
|
Méthode | Description | |
---|---|---|
AssembleResourceLoaderInitializers ( ) : void |
This will produce a List of Hashtables, each hashtable contains the initialization info for a particular resource loader. This Hashtable will be passed in when initializing the the template loader.
|
public GetLoaderNameForResource ( String resourceName ) : String | ||
resourceName | String | Name of template or content resource /// |
Résultat | String |
public GetResource ( String resourceName, ResourceType resourceType ) : Resource | ||
resourceName | String | The name of the resource to retrieve. /// |
resourceType | ResourceType | The type of resource (Template ,
/// Content , etc.).
/// |
Résultat | Resource |
public GetResource ( string resourceName, ResourceType resourceType, string encoding ) : Resource | ||
resourceName | string | The name of the resource to retrieve. /// |
resourceType | ResourceType | The type of resource (Template ,
/// Content , etc.).
/// |
encoding | string | The character encoding to use. /// |
Résultat | Resource |
public Initialize ( IRuntimeServices rs ) : void | ||
rs | IRuntimeServices | |
Résultat | void |
protected LoadResource ( String resourceName, ResourceType resourceType, String encoding ) : Resource | ||
resourceName | String | The name of the resource to retrieve. |
resourceType | ResourceType | The type of resource (Template ,
/// Content , etc.).
/// |
encoding | String | The character encoding to use. |
Résultat | Resource |
protected RefreshResource ( Resource resource, String encoding ) : void | ||
resource | Resource | resource to refresh /// * /// @throws ResourceNotFoundException if template not found /// from current source for this Resource /// @throws ParseErrorException if template cannot be parsed due /// to syntax (or other) error. /// @throws Exception if a problem in parse /// /// |
encoding | String | |
Résultat | void |
protected ArrayList,System.Collections resourceLoaders | ||
Résultat |