org.omnifaces.component.output.cache
Class DefaultCacheProvider

java.lang.Object
  extended by org.omnifaces.component.output.cache.CacheInstancePerScopeProvider
      extended by org.omnifaces.component.output.cache.DefaultCacheProvider
All Implemented Interfaces:
CacheProvider

public class DefaultCacheProvider
extends CacheInstancePerScopeProvider

A default cache provider that will be used by the OmniFaces Cache component if no explicit provider has been configured.

This will create a Cache instance that uses a repackaged ConcurrentLinkedHashMap for the actual implementation.

See: http://code.google.com/p/concurrentlinkedhashmap

Since:
1.1
Author:
Arjan Tijms

Field Summary
 
Fields inherited from class org.omnifaces.component.output.cache.CacheInstancePerScopeProvider
APP_MAX_CAP_PARAM_NAME, APP_TTL_PARAM_NAME, DEFAULT_CACHE_PARAM_NAME, SESSION_MAX_CAP_PARAM_NAME, SESSION_TTL_PARAM_NAME
 
Constructor Summary
DefaultCacheProvider()
           
 
Method Summary
protected  Cache createCache(java.lang.Integer timeToLive, java.lang.Integer maxCapacity)
           
 
Methods inherited from class org.omnifaces.component.output.cache.CacheInstancePerScopeProvider
getCache, getParameters, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheProvider

public DefaultCacheProvider()
Method Detail

createCache

protected Cache createCache(java.lang.Integer timeToLive,
                            java.lang.Integer maxCapacity)
Specified by:
createCache in class CacheInstancePerScopeProvider