C# 클래스 Spring.Template.Velocity.SpringResourceLoader

상속: NVelocity.Runtime.Resource.Loader.ResourceLoader
파일 보기 프로젝트 열기: spring-projects/spring-net

보호된 프로퍼티들

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