Package org.apache.struts2.ognl

# Interface OgnlCacheFactory<Key,Value>

Type Parameters:
  `Key` - The type for the cache key entries
  `Value` - 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
  Modifier and Type
  Interface
  Description
  `static enum`
  `OgnlCacheFactory.CacheType`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `OgnlCache<Key,Value>`
  `buildOgnlCache()`
  `OgnlCache<Key,Value>`
  `buildOgnlCache(int evictionLimit, int initialCapacity, float loadFactor, OgnlCacheFactory.CacheType cacheType)`
  `int`
  `getCacheMaxSize()`
  `OgnlCacheFactory.CacheType`
  `getDefaultCacheType()`

- ## Method Details

  - ### buildOgnlCache

    OgnlCache<Key,Value> buildOgnlCache()

  - ### 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 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

  - ### getCacheMaxSize

    int getCacheMaxSize()

  - ### getDefaultCacheType

    OgnlCacheFactory.CacheType getDefaultCacheType()