C# Класс Spring.Template.Velocity.SpringResourceLoader

Наследование: NVelocity.Runtime.Resource.Loader.ResourceLoader
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
log ILog

Открытые методы

Метод Описание
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.

Описание методов

GetLastModified() публичный Метод

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.
Результат long

GetResourceStream() публичный Метод

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
Результат Stream

Init() публичный Метод

Initialize the template loader with a resources class.
public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties The ExtendedProperties representing the Velocity configuration.
Результат void

IsSourceModified() публичный Метод

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.
Результат bool

Описание свойств

log защищенное статическое свойство

Shared logger instance.
protected static ILog log
Результат ILog