org.xwiki.cache.internal
Class DefaultCacheFactory

java.lang.Object
  extended by org.xwiki.cache.internal.DefaultCacheFactory
All Implemented Interfaces:
CacheFactory

@Component
public class DefaultCacheFactory
extends java.lang.Object
implements CacheFactory

Default implementation of CacheFactory.

Version:
$Id$

Constructor Summary
DefaultCacheFactory()
           
 
Method Summary
<T> Cache<T>
newCache(CacheConfiguration config)
          Create and return a custom cache.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheFactory

public DefaultCacheFactory()
Method Detail

newCache

public <T> Cache<T> newCache(CacheConfiguration config)
                  throws CacheException
Create and return a custom cache.

Specified by:
newCache in interface CacheFactory
Type Parameters:
T - the class of the data stored in the cache.
Parameters:
config - the cache configuration.
Returns:
a new Cache.
Throws:
CacheException - error when creating the cache.
See Also:
CacheFactory.newCache(org.xwiki.cache.config.CacheConfiguration)


Copyright © 2004-2011 XWiki. All Rights Reserved.