C# Class NVelocity.Runtime.Resource.Loader.FileResourceLoader

A loader for templates stored on the file system.
Inheritance: ResourceLoader
Afficher le fichier Open project: rasmus-toftdahl-olesen/NVelocity

Protected Properties

Свойство Type Description
paths System.Collections.ArrayList
templatePaths System.Collections.Hashtable

Méthodes publiques

Méthode Description
GetLastModified ( Util.Resource resource ) : long
GetResourceStream ( String templateName ) : Stream

Get an InputStream so that the Runtime can build a template with it.

Init ( ExtendedProperties configuration ) : void
IsSourceModified ( Util.Resource resource ) : bool

How to keep track of all the modified times across the paths.

Private Methods

Méthode Description
FindTemplate ( String path, String template ) : Stream

Try to find a template given a normalized path.

Method Details

GetLastModified() public méthode

public GetLastModified ( Util.Resource resource ) : long
resource Util.Resource
Résultat long

GetResourceStream() public méthode

Get an InputStream so that the Runtime can build a template with it.
public GetResourceStream ( String templateName ) : Stream
templateName String name of template to get
Résultat Stream

Init() public méthode

public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties
Résultat void

IsSourceModified() public méthode

How to keep track of all the modified times across the paths.
public IsSourceModified ( Util.Resource resource ) : bool
resource Util.Resource
Résultat bool

Property Details

paths protected_oe property

The paths to search for templates.
protected ArrayList,System.Collections paths
Résultat System.Collections.ArrayList

templatePaths protected_oe property

Used to map the path that a template was found on so that we can properly check the modification times of the files.
protected Hashtable,System.Collections templatePaths
Résultat System.Collections.Hashtable