Class AbstractCacheFactory

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Cache getCache​(java.lang.ClassLoader classLoader)
      Instantiates an instance of the cache implementation this factory is responsible for using the given classloader.
      protected boolean isInitialized()
      Has the cache factory been initialized?
      void shutdown()
      Allows for cache-specific shutdown operations and resource cleanup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCacheFactory

        public AbstractCacheFactory()
    • Method Detail

      • isInitialized

        protected final boolean isInitialized()
        Has the cache factory been initialized?
        Returns:
        true if cache factory has been initialized, false otherwise.
      • getCache

        public final Cache getCache​(java.lang.ClassLoader classLoader)
                             throws CacheAcquireException
        Instantiates an instance of the cache implementation this factory is responsible for using the given classloader.
        Specified by:
        getCache in interface CacheFactory
        Parameters:
        classLoader - A ClassLoader instance.
        Returns:
        A Cache instance.
        Throws:
        CacheAcquireException - Problem instantiating a cache instance.
      • shutdown

        public void shutdown()
        Allows for cache-specific shutdown operations and resource cleanup.
        Specified by:
        shutdown in interface CacheFactory