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
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
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