C# 클래스 NVelocity.Runtime.Resource.ResourceCacheImpl

Default implementation of the resource cache for the default ResourceManager. The cache uses a least recently used (LRU) algorithm, with a maximum size specified via the resource.manager.cache.size property (identified by the {@link org.apache.velocity.runtime.RuntimeConstants#RESOURCE_MANAGER_CACHE_SIZE} constant). This property get be set to 0 or less for a greedy, unbounded cache (the behavior from pre-v1.5). *
상속: ResourceCache
파일 보기 프로젝트 열기: rasmus-toftdahl-olesen/NVelocity 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
cache IDictionary
runtimeServices IRuntimeServices

공개 메소드들

메소드 설명
enumerateKeys ( ) : IEnumerator
get ( Object key ) : Resource
initialize ( IRuntimeServices rs ) : void
put ( Object key, Resource value ) : Resource
remove ( Object key ) : Resource

메소드 상세

enumerateKeys() 공개 메소드

public enumerateKeys ( ) : IEnumerator
리턴 IEnumerator

get() 공개 메소드

public get ( Object key ) : Resource
key Object
리턴 Resource

initialize() 공개 메소드

public initialize ( IRuntimeServices rs ) : void
rs IRuntimeServices
리턴 void

put() 공개 메소드

public put ( Object key, Resource value ) : Resource
key Object
value Resource
리턴 Resource

remove() 공개 메소드

public remove ( Object key ) : Resource
key Object
리턴 Resource

프로퍼티 상세

cache 보호되어 있는 프로퍼티

Cache storage, assumed to be thread-safe.
protected IDictionary cache
리턴 IDictionary

runtimeServices 보호되어 있는 프로퍼티

Runtime services, generally initialized by the initialize() method.
protected IRuntimeServices runtimeServices
리턴 IRuntimeServices