|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.resource.util.AbstractServiceFactory<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 | |
---|---|
static void |
clear(String cacheName) Clears the cache with the given name. |
static void |
clearAll() Removes all keys from all caches. |
static void |
discard(String cacheName) Clears and stops the cache. |
static Set<String> |
getCacheNames() Returns the set of cache names. |
static Cache<?,?> |
getConfigurationsCache(String cacheName) Returns the cache with the given name. |
static CacheManager |
getManager() Returns the instance of the manager. |
static UnawareCache<?,?> |
getPropertiesCache(String cacheName) Returns the cache with the given name. |
static void |
stop(String cacheName) Stops the cache with the given name. |
static void |
stopAll() Stops all caches, rendering the manager in a stopped state. |
Methods inherited from class de.smartics.properties.resource.util.AbstractServiceFactory |
---|
create, create |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static CacheManager getManager()
null
.
public static void clearAll()
public static void clear(String cacheName)
cacheName
- the name of the cache to be cleared.
public static void discard(String cacheName)
cacheName
- the name of the cache to be cleared and stopped.
public static void stopAll()
public static void stop(String cacheName)
cacheName
- the name of the cache to stop.
public static UnawareCache<?,?> getPropertiesCache(String cacheName)
cacheName
- the name of the cache to fetch.
public static Cache<?,?> getConfigurationsCache(String cacheName)
cacheName
- the name of the cache to fetch.
public static Set<String> getCacheNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |