C# Class Spring.Template.Velocity.SpringResourceLoader

Inheritance: NVelocity.Runtime.Resource.Loader.ResourceLoader
Afficher le fichier Open project: spring-projects/spring-net

Protected Properties

Свойство Type Description
log ILog

Méthodes publiques

Méthode Description
GetLastModified ( 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 source ) : Stream

Get the System.IO.Stream that the Runtime will parse to create a template.

Init ( ExtendedProperties configuration ) : void

Initialize the template loader with a resources class.

IsSourceModified ( Resource resource ) : bool

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

Method Details

GetLastModified() public méthode

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 ( Resource resource ) : long
resource NVelocity.Runtime.Resource.Resource The resource.
Résultat long

GetResourceStream() public méthode

Get the System.IO.Stream that the Runtime will parse to create a template.
public GetResourceStream ( string source ) : Stream
source string the source template name
Résultat Stream

Init() public méthode

Initialize the template loader with a resources class.
public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties The ExtendedProperties representing the Velocity configuration.
Résultat void

IsSourceModified() public méthode

Given a template, check to see if the source of InputStream has been modified.
public IsSourceModified ( Resource resource ) : bool
resource NVelocity.Runtime.Resource.Resource The resource.
Résultat bool

Property Details

log protected_oe static_oe property

Shared logger instance.
protected static ILog log
Résultat ILog