Key - The type for the cache key entriesValue - The type for the cache value entriespublic class DefaultOgnlCacheFactory<Key,Value> extends Object implements OgnlCacheFactory<Key,Value>
Default OGNL Cache factory implementation.
Currently used for Expression cache and BeanInfo cache creation.
OgnlCacheFactory.CacheType| Constructor and Description | 
|---|
| DefaultOgnlCacheFactory()Deprecated. 
 since 6.4.0, use  #DefaultOgnlCacheFactory(int, CacheType) | 
| DefaultOgnlCacheFactory(int cacheMaxSize,
                       OgnlCacheFactory.CacheType defaultCacheType) | 
| DefaultOgnlCacheFactory(int cacheMaxSize,
                       OgnlCacheFactory.CacheType defaultCacheType,
                       int initialCapacity) | 
| Modifier and Type | Method and Description | 
|---|---|
| OgnlCache<Key,Value> | buildOgnlCache() | 
| OgnlCache<Key,Value> | buildOgnlCache(int evictionLimit,
              int initialCapacity,
              float loadFactor,
              OgnlCacheFactory.CacheType cacheType) | 
| int | getCacheMaxSize() | 
| OgnlCacheFactory.CacheType | getDefaultCacheType() | 
| protected void | setCacheMaxSize(String maxSize)Deprecated. 
 since 6.4.0 | 
| protected void | setUseLRUCache(String useLRUMode)Deprecated. 
 since 6.4.0 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildOgnlCache, getUseLRUCache@Deprecated public DefaultOgnlCacheFactory()
#DefaultOgnlCacheFactory(int, CacheType)public DefaultOgnlCacheFactory(int cacheMaxSize,
                               OgnlCacheFactory.CacheType defaultCacheType)
public DefaultOgnlCacheFactory(int cacheMaxSize,
                               OgnlCacheFactory.CacheType defaultCacheType,
                               int initialCapacity)
public OgnlCache<Key,Value> buildOgnlCache()
buildOgnlCache in interface OgnlCacheFactory<Key,Value>public OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType)
buildOgnlCache in interface OgnlCacheFactory<Key,Value>evictionLimit - maximum capacity of the cache where applicable for cache type choseninitialCapacity - initial capacity of the cache where applicable for cache type chosenloadFactor - load factor of the cache where applicable for cache type chosencacheType - type of cache to buildpublic int getCacheMaxSize()
getCacheMaxSize in interface OgnlCacheFactory<Key,Value>@Deprecated protected void setCacheMaxSize(String maxSize)
public OgnlCacheFactory.CacheType getDefaultCacheType()
getDefaultCacheType in interface OgnlCacheFactory<Key,Value>@Deprecated protected void setUseLRUCache(String useLRUMode)
useLRUMode is falseCopyright © 2000–2025 Apache Software Foundation. All rights reserved.