Package com.opensymphony.xwork2.ognl
Class DefaultOgnlCacheFactory<Key,Value>
java.lang.Object
com.opensymphony.xwork2.ognl.DefaultOgnlCacheFactory<Key,Value>
- Type Parameters:
Key
- The type for the cache key entriesValue
- The type for the cache value entries
- All Implemented Interfaces:
OgnlCacheFactory<Key,
Value>
- Direct Known Subclasses:
DefaultOgnlBeanInfoCacheFactory
,DefaultOgnlExpressionCacheFactory
public class DefaultOgnlCacheFactory<Key,Value>
extends Object
implements OgnlCacheFactory<Key,Value>
Default OGNL Cache factory implementation.
Currently used for Expression cache and BeanInfo cache creation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opensymphony.xwork2.ognl.OgnlCacheFactory
OgnlCacheFactory.CacheType
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.DefaultOgnlCacheFactory
(int cacheMaxSize, OgnlCacheFactory.CacheType defaultCacheType) -
Method Summary
Modifier and TypeMethodDescriptionbuildOgnlCache
(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) int
protected void
setCacheMaxSize
(String maxSize) Deprecated.since 6.4.0protected void
setUseLRUCache
(String useLRUMode) Deprecated.since 6.4.0Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.opensymphony.xwork2.ognl.OgnlCacheFactory
buildOgnlCache, getUseLRUCache
-
Constructor Details
-
DefaultOgnlCacheFactory
Deprecated.since 6.4.0, useDefaultOgnlCacheFactory(int, CacheType)
-
DefaultOgnlCacheFactory
-
-
Method Details
-
buildOgnlCache
- Specified by:
buildOgnlCache
in interfaceOgnlCacheFactory<Key,
Value>
-
buildOgnlCache
public OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) - Specified by:
buildOgnlCache
in interfaceOgnlCacheFactory<Key,
Value> - Parameters:
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 build- Returns:
- a new cache instance
-
getCacheMaxSize
public int getCacheMaxSize()- Specified by:
getCacheMaxSize
in interfaceOgnlCacheFactory<Key,
Value>
-
setCacheMaxSize
Deprecated.since 6.4.0 -
getDefaultCacheType
- Specified by:
getDefaultCacheType
in interfaceOgnlCacheFactory<Key,
Value>
-
setUseLRUCache
Deprecated.since 6.4.0No effect whenuseLRUMode
isfalse
-
DefaultOgnlCacheFactory(int, CacheType)