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

Inheritance: ResourceLoader
Datei anzeigen Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
AssemblyResourceLoader ( ) : System
GetLastModified ( Util.Resource resource ) : long

Get the last modified time of the InputStream source that was used to create the template. We need the template here because we have to extract the name of the template in order to locate the InputStream source.

GetResourceStream ( String templateName ) : Stream

Get the InputStream that the Runtime will parse to create a template.

Init ( ExtendedProperties configuration ) : void

Initialize the template loader with a a resources class.

IsSourceModified ( Util.Resource resource ) : bool

Given a template, check to see if the source of InputStream has been modified.

Method Details

AssemblyResourceLoader() public method

public AssemblyResourceLoader ( ) : System
return System

GetLastModified() public method

Get the last modified time of the InputStream source that was used to create the template. We need the template here because we have to extract the name of the template in order to locate the InputStream source.
public GetLastModified ( Util.Resource resource ) : long
resource Util.Resource
return long

GetResourceStream() public method

Get the InputStream that the Runtime will parse to create a template.
public GetResourceStream ( String templateName ) : Stream
templateName String
return Stream

Init() public method

Initialize the template loader with a a resources class.
public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties
return void

IsSourceModified() public method

Given a template, check to see if the source of InputStream has been modified.
public IsSourceModified ( Util.Resource resource ) : bool
resource Util.Resource
return bool