org.specrunner.util.cache.core
Class CacheFactoryDefault

java.lang.Object
  extended by org.specrunner.util.cache.core.AbstractCacheFactory
      extended by org.specrunner.util.cache.core.CacheFactoryDefault
All Implemented Interfaces:
ICacheFactory

public class CacheFactoryDefault
extends AbstractCacheFactory

Default implementation.

Author:
Thiago Santos

Constructor Summary
CacheFactoryDefault()
           
 
Method Summary
protected
<K,T> CacheLRU<K,T>
create(String name, ICacheCleaner<T> cleaner)
          Create the cache object.
 
Methods inherited from class org.specrunner.util.cache.core.AbstractCacheFactory
newCache, newCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheFactoryDefault

public CacheFactoryDefault()
Method Detail

create

protected <K,T> CacheLRU<K,T> create(String name,
                                     ICacheCleaner<T> cleaner)
Description copied from class: AbstractCacheFactory
Create the cache object.

Specified by:
create in class AbstractCacheFactory
Type Parameters:
K - Key type.
T - Cache object type.
Parameters:
name - Cache name.
cleaner - A cache cleaner.
Returns:
The cache instance.


Copyright © 2014. All rights reserved.