Package com.opensymphony.xwork2.ognl
Interface OgnlCacheFactory<Key,Value>
- Type Parameters:
Key
- The type for the cache key entriesValue
- The type for the cache value entries
- All Known Subinterfaces:
BeanInfoCacheFactory<Key,
,Value> ExpressionCacheFactory<Key,
Value>
- All Known Implementing Classes:
DefaultOgnlBeanInfoCacheFactory
,DefaultOgnlCacheFactory
,DefaultOgnlExpressionCacheFactory
public interface OgnlCacheFactory<Key,Value>
Used by
OgnlUtil
to create appropriate OGNL
caches based on configuration.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuildOgnlCache
(int evictionLimit, int initialCapacity, float loadFactor, boolean lruCache) Deprecated.buildOgnlCache
(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) int
default boolean
Deprecated.since 6.4.0
-
Method Details
-
buildOgnlCache
-
buildOgnlCache
@Deprecated default OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, boolean lruCache) Deprecated.since 6.4.0, usebuildOgnlCache(int, int, float, CacheType)
Note that iflruCache
isfalse
, the cache type could still be LRU if the default cache type is configured as such. -
buildOgnlCache
OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) - 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
int getCacheMaxSize() -
getUseLRUCache
Deprecated.since 6.4.0 -
getDefaultCacheType
OgnlCacheFactory.CacheType getDefaultCacheType()
-
buildOgnlCache(int, int, float, CacheType)