|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.core.services.AbstractServiceFactory<T> de.smartics.properties.core.services.AbstractJndiBackedServiceFactory<CacheManager> de.smartics.properties.spi.config.cache.CacheManagerFactory
public final class CacheManagerFactory
Creates instances of the CacheManager
.
Returns the manager for caches. The manager class is registered in META-INF/services/de.smartics.properties.spi.config.cache.CacheManager
.
Issues a warning if more than one implementation is found. Returns an instance of the first implementation found. If no type is specified, returns an instance of AmnesiaCacheManager
per default.
Method Summary | |
---|---|
CacheManager |
createManager() Returns the a new instance of a cache manager. |
static CacheManagerFactory |
getInstance() Returns the singleton instance for this factory. |
CacheManager |
getManager(String id) Returns the an instance of a cache manager for a given id or create a new one on first request. |
Methods inherited from class de.smartics.properties.core.services.AbstractServiceFactory |
---|
create, create, createBackup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CacheManagerFactory getInstance()
public CacheManager createManager()
null
.
public CacheManager getManager(String id)
id
- fetch the cache manager for the given id or create a new one on first request.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |