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

A loader for templates stored on the file system.
Наследование: ResourceLoader
Показать файл Открыть проект

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

Свойство Тип Описание
paths System.Collections.ArrayList
templatePaths System.Collections.Hashtable

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

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

Приватные методы

Метод Описание
FindTemplate ( String path, String template ) : Stream

Try to find a template given a normalized path.

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

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

public GetLastModified ( Util.Resource resource ) : long
resource Util.Resource
Результат long

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

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

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

public Init ( ExtendedProperties configuration ) : void
configuration Commons.Collections.ExtendedProperties
Результат void

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

How to keep track of all the modified times across the paths.
public IsSourceModified ( Util.Resource resource ) : bool
resource Util.Resource
Результат bool

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

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

The paths to search for templates.
protected ArrayList,System.Collections paths
Результат System.Collections.ArrayList

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

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