Class SCCacheFactory

java.lang.Object
org.serviceconnector.cache.ehcache.SCCacheFactory

public final class SCCacheFactory extends Object
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 Details

    • createDefaultSCCache

      public static ISCCacheModule<?> createDefaultSCCache(SCCacheConfiguration scCacheConfiguration, SC_CACHE_MODULE_TYPE cacheType)
      Creates a new SCCache object.
      Parameters:
      scCacheConfiguration - the SC cache configuration
      cacheType - the cache type needed
      Returns:
      the ISC cache
    • destroy

      public static void destroy()
      Destroys factory and shuts down resources.