C# Class 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). *
Inheritance: ResourceCache
Datei anzeigen Open project: rasmus-toftdahl-olesen/NVelocity Class Usage Examples

Protected Properties

Property Type Description
cache IDictionary
runtimeServices IRuntimeServices

Public Methods

Method Description
enumerateKeys ( ) : IEnumerator
get ( Object key ) : Resource
initialize ( IRuntimeServices rs ) : void
put ( Object key, Resource value ) : Resource
remove ( Object key ) : Resource

Method Details

enumerateKeys() public method

public enumerateKeys ( ) : IEnumerator
return IEnumerator

get() public method

public get ( Object key ) : Resource
key Object
return Resource

initialize() public method

public initialize ( IRuntimeServices rs ) : void
rs IRuntimeServices
return void

put() public method

public put ( Object key, Resource value ) : Resource
key Object
value Resource
return Resource

remove() public method

public remove ( Object key ) : Resource
key Object
return Resource

Property Details

cache protected_oe property

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

runtimeServices protected_oe property

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