Class SpringCacheConfigurationFactory


  • public final class SpringCacheConfigurationFactory
    extends java.lang.Object
    A factory class for creating cache configuration objects.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.springframework.cache.CacheManager newCacheManager​(org.springframework.cache.CacheManager... cacheCacheManager)
      Factory method for create the new composite CacheManager from the given CacheManager's.
      static org.springframework.cache.ehcache.EhCacheCacheManager newEhCacheCacheManager​(org.springframework.cache.ehcache.EhCacheManagerFactoryBean cacheManagerFactoryBean)
      Factory method for create the new EhCacheCacheManager object from the given EhCacheManagerFactoryBean object.
      static org.springframework.cache.ehcache.EhCacheManagerFactoryBean newEhCacheManagerFactoryBean​(java.lang.String ehcacheXmlFilename)
      Factory method for create the new EhCacheManagerFactoryBean object from the given file name as String object.
      static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()
      Factory method for create the new SimpleCacheErrorHandler object.
      static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()
      Factory method for create the new SimpleCacheResolver object.
      static org.springframework.cache.interceptor.KeyGenerator newSimpleKeyGenerator()
      Factory method for create the new SimpleKeyGenerator object.
      • Methods inherited from class java.lang.Object

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

      • newCacheManager

        public static org.springframework.cache.CacheManager newCacheManager​(org.springframework.cache.CacheManager... cacheCacheManager)
        Factory method for create the new composite CacheManager from the given CacheManager's.
        Parameters:
        cacheCacheManager - the cache cache manager
        Returns:
        the new CacheManager
      • newSimpleKeyGenerator

        public static org.springframework.cache.interceptor.KeyGenerator newSimpleKeyGenerator()
        Factory method for create the new SimpleKeyGenerator object.
        Returns:
        the new SimpleKeyGenerator
      • newSimpleCacheResolver

        public static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()
        Factory method for create the new SimpleCacheResolver object.
        Returns:
        the new SimpleCacheResolver
      • newSimpleCacheErrorHandler

        public static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()
        Factory method for create the new SimpleCacheErrorHandler object.
        Returns:
        the new SimpleCacheErrorHandler
      • newEhCacheManagerFactoryBean

        public static org.springframework.cache.ehcache.EhCacheManagerFactoryBean newEhCacheManagerFactoryBean​(java.lang.String ehcacheXmlFilename)
        Factory method for create the new EhCacheManagerFactoryBean object from the given file name as String object.
        Parameters:
        ehcacheXmlFilename - the xml filename
        Returns:
        the new EhCacheManagerFactoryBean
      • newEhCacheCacheManager

        public static org.springframework.cache.ehcache.EhCacheCacheManager newEhCacheCacheManager​(org.springframework.cache.ehcache.EhCacheManagerFactoryBean cacheManagerFactoryBean)
        Factory method for create the new EhCacheCacheManager object from the given EhCacheManagerFactoryBean object.
        Parameters:
        cacheManagerFactoryBean - the EhCacheManagerFactoryBean object
        Returns:
        the new EhCacheCacheManager