C# 클래스 NVelocity.Runtime.Resource.Loader.ResourceLoader

This is abstract class the all text resource loaders should extend.
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity

보호된 프로퍼티들

프로퍼티 타입 설명
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