Package org.apache.struts2.ognl
Class DefaultOgnlCacheFactory<Key,Value> 
java.lang.Object
org.apache.struts2.ognl.DefaultOgnlCacheFactory<Key,Value> 
- Type Parameters:
- Key- The type for the cache key entries
- Value- 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 SummaryNested classes/interfaces inherited from interface org.apache.struts2.ognl.OgnlCacheFactoryOgnlCacheFactory.CacheType
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultOgnlCacheFactory(int cacheMaxSize, OgnlCacheFactory.CacheType defaultCacheType) DefaultOgnlCacheFactory(int cacheMaxSize, OgnlCacheFactory.CacheType defaultCacheType, int initialCapacity) 
- 
Method SummaryModifier and TypeMethodDescriptionbuildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) int
- 
Constructor Details- 
DefaultOgnlCacheFactory
- 
DefaultOgnlCacheFactorypublic DefaultOgnlCacheFactory(int cacheMaxSize, OgnlCacheFactory.CacheType defaultCacheType, int initialCapacity) 
 
- 
- 
Method Details- 
buildOgnlCache- Specified by:
- buildOgnlCachein interface- OgnlCacheFactory<Key,- Value> 
 
- 
buildOgnlCachepublic OgnlCache<Key,Value> buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType) - Specified by:
- buildOgnlCachein interface- OgnlCacheFactory<Key,- Value> 
- Parameters:
- evictionLimit- maximum capacity of the cache where applicable for cache type chosen
- initialCapacity- initial capacity of the cache where applicable for cache type chosen
- loadFactor- load factor of the cache where applicable for cache type chosen
- cacheType- type of cache to build
- Returns:
- a new cache instance
 
- 
getCacheMaxSizepublic int getCacheMaxSize()- Specified by:
- getCacheMaxSizein interface- OgnlCacheFactory<Key,- Value> 
 
- 
getDefaultCacheType- Specified by:
- getDefaultCacheTypein interface- OgnlCacheFactory<Key,- Value> 
 
 
-