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

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

Protected Properties

Property Type Description
paths System.Collections.ArrayList
templatePaths System.Collections.Hashtable

Public Methods

Method 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

Method Description
FindTemplate ( String path, String template ) : Stream

Try to find a template given a normalized path.

Method Details

GetLastModified() public method

public GetLastModified ( Util.Resource resource ) : long
resource Util.Resource
return long

GetResourceStream() public method

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
return Stream

Init() public method

public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties
return void

IsSourceModified() public method

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

Property Details

paths protected_oe property

The paths to search for templates.
protected ArrayList,System.Collections paths
return 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
return System.Collections.Hashtable