Class SCCacheFactory
java.lang.Object
org.serviceconnector.cache.ehcache.SCCacheFactory
A factory for creating SCCache objects. Default caches are implemented by EHCache. Factory knows how to create/configure an EHCache instance. It holds the EHCache cacheManager
which is necessary to take care of if you use EHCache.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ISCCacheModule<?>createDefaultSCCache(SCCacheConfiguration scCacheConfiguration, SC_CACHE_MODULE_TYPE cacheType) Creates a new SCCache object.static voiddestroy()Destroys factory and shuts down resources.
-
Method Details
-
createDefaultSCCache
public static ISCCacheModule<?> createDefaultSCCache(SCCacheConfiguration scCacheConfiguration, SC_CACHE_MODULE_TYPE cacheType) Creates a new SCCache object.- Parameters:
scCacheConfiguration- the SC cache configurationcacheType- the cache type needed- Returns:
- the ISC cache
-
destroy
public static void destroy()Destroys factory and shuts down resources.
-