|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.specrunner.util.cache.core.AbstractCacheFactory
public abstract class AbstractCacheFactory
Abstract implementation of a factory.
| Constructor Summary | |
|---|---|
AbstractCacheFactory()
|
|
| Method Summary | ||
|---|---|---|
protected abstract
|
create(String name,
ICacheCleaner<T> cleaner)
Create the cache object. |
|
|
newCache(String name)
Creates a new cache. |
|
|
newCache(String name,
ICacheCleaner<T> cleaner)
Creates a new cache. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCacheFactory()
| Method Detail |
|---|
public <K,T> ICache<K,T> newCache(String name)
ICacheFactory
newCache in interface ICacheFactoryK - Key type.T - Cache object type.name - Cache name.
public <K,T> ICache<K,T> newCache(String name,
ICacheCleaner<T> cleaner)
ICacheFactory
newCache in interface ICacheFactoryK - Key type.T - Cache object type.name - Cache name.cleaner - A cleaner of objects in cache when it overloads.
protected abstract <K,T> ICache<K,T> create(String name,
ICacheCleaner<T> cleaner)
K - Key type.T - Cache object type.name - Cache name.cleaner - A cache cleaner.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||