Class SpringCacheConfigurationFactory
- java.lang.Object
-
- io.github.astrapi69.spring.cache.factory.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 compositeCacheManager
from the givenCacheManager
's.static org.springframework.cache.ehcache.EhCacheCacheManager
newEhCacheCacheManager(org.springframework.cache.ehcache.EhCacheManagerFactoryBean cacheManagerFactoryBean)
Factory method for create the newEhCacheCacheManager
object from the givenEhCacheManagerFactoryBean
object.static org.springframework.cache.ehcache.EhCacheManagerFactoryBean
newEhCacheManagerFactoryBean(java.lang.String ehcacheXmlFilename)
Factory method for create the newEhCacheManagerFactoryBean
object from the given file name asString
object.static org.springframework.cache.interceptor.CacheErrorHandler
newSimpleCacheErrorHandler()
Factory method for create the newSimpleCacheErrorHandler
object.static org.springframework.cache.interceptor.CacheResolver
newSimpleCacheResolver()
Factory method for create the newSimpleCacheResolver
object.static org.springframework.cache.interceptor.KeyGenerator
newSimpleKeyGenerator()
Factory method for create the newSimpleKeyGenerator
object.
-
-
-
Method Detail
-
newCacheManager
public static org.springframework.cache.CacheManager newCacheManager(org.springframework.cache.CacheManager... cacheCacheManager)
Factory method for create the new compositeCacheManager
from the givenCacheManager
'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 newSimpleKeyGenerator
object.- Returns:
- the new
SimpleKeyGenerator
-
newSimpleCacheResolver
public static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()
Factory method for create the newSimpleCacheResolver
object.- Returns:
- the new
SimpleCacheResolver
-
newSimpleCacheErrorHandler
public static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()
Factory method for create the newSimpleCacheErrorHandler
object.- Returns:
- the new
SimpleCacheErrorHandler
-
newEhCacheManagerFactoryBean
public static org.springframework.cache.ehcache.EhCacheManagerFactoryBean newEhCacheManagerFactoryBean(java.lang.String ehcacheXmlFilename)
Factory method for create the newEhCacheManagerFactoryBean
object from the given file name asString
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 newEhCacheCacheManager
object from the givenEhCacheManagerFactoryBean
object.- Parameters:
cacheManagerFactoryBean
- theEhCacheManagerFactoryBean
object- Returns:
- the new
EhCacheCacheManager
-
-