Package org.serviceconnector.registry
Class CacheModuleRegistry
java.lang.Object
org.serviceconnector.registry.Registry<String,ISCCacheModule<?>>
org.serviceconnector.registry.CacheModuleRegistry
- All Implemented Interfaces:
IRegistryMXBean
The Class CacheModuleRegistry. Registries stores cache modules available in SC.
-
Field Summary
Fields inherited from class org.serviceconnector.registry.Registry
registryMap -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCacheModule(String key, ISCCacheModule<?> cacheModule) Adds the cache module.voiddump(XMLDumpWriter writer) Dump.Gets the cache.voidremoveCache(String key) Removes the cache.Methods inherited from class org.serviceconnector.registry.Registry
containsKey, get, getEntries, getSize, keySet, keySetArray, put, remove, toString
-
Constructor Details
-
CacheModuleRegistry
public CacheModuleRegistry()
-
-
Method Details
-
addCacheModule
Adds the cache module.- Parameters:
key- the keycacheModule- the cache module
-
getCache
Gets the cache.- Parameters:
key- the key- Returns:
- the cache
-
removeCache
Removes the cache.- Parameters:
key- the key
-
dump
Dump.- Parameters:
writer- the writer- Throws:
Exception- the exception
-