C# Класс NVelocity.Runtime.Resource.Loader.ResourceLoader

This is abstract class the all text resource loaders should extend.
Показать файл Открыть проект

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

Свойство Тип Описание
className String
isCachingOn bool
modificationCheckInterval long
runtimeServices IRuntimeServices

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

Метод Описание
CommonInit ( IRuntimeServices rs, ExtendedProperties configuration ) : void

This initialization is used by all resource loaders and must be called to set up common properties shared by all resource loaders

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 InputStream that the Runtime will parse to create a template.

Init ( ExtendedProperties configuration ) : void

Initialize the template loader with a a resources class.

IsSourceModified ( Resource resource ) : bool

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

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

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

This initialization is used by all resource loaders and must be called to set up common properties shared by all resource loaders
public CommonInit ( IRuntimeServices rs, ExtendedProperties configuration ) : void
rs IRuntimeServices
configuration Commons.Collections.ExtendedProperties
Результат void

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 abstract GetLastModified ( Resource resource ) : long
resource Resource
Результат long

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

Get the InputStream that the Runtime will parse to create a template.
public abstract GetResourceStream ( String source ) : Stream
source String
Результат Stream

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

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

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

Given a template, check to see if the source of InputStream has been modified.
public abstract IsSourceModified ( Resource resource ) : bool
resource Resource
Результат bool

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

className защищенное свойство

Class name for this loader, for logging/debugging purposes.
protected String className
Результат String

isCachingOn защищенное свойство

Does this loader want templates produced with it cached in the Runtime.
protected bool isCachingOn
Результат bool

modificationCheckInterval защищенное свойство

This property will be passed on to the templates that are created with this loader.
protected long modificationCheckInterval
Результат long

runtimeServices защищенное свойство

protected IRuntimeServices runtimeServices
Результат IRuntimeServices