Class SpringCacheConfigurationFactory
- java.lang.Object
-
- io.github.astrapi69.spring.cache.factory.SpringCacheConfigurationFactory
-
public final class SpringCacheConfigurationFactory extends java.lang.ObjectA factory class for creating cache configuration objects.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.springframework.cache.CacheManagernewCacheManager(org.springframework.cache.CacheManager... cacheCacheManager)Factory method for create the new compositeCacheManagerfrom the givenCacheManager's.static org.springframework.cache.ehcache.EhCacheCacheManagernewEhCacheCacheManager(org.springframework.cache.ehcache.EhCacheManagerFactoryBean cacheManagerFactoryBean)Factory method for create the newEhCacheCacheManagerobject from the givenEhCacheManagerFactoryBeanobject.static org.springframework.cache.ehcache.EhCacheManagerFactoryBeannewEhCacheManagerFactoryBean(java.lang.String ehcacheXmlFilename)Factory method for create the newEhCacheManagerFactoryBeanobject from the given file name asStringobject.static org.springframework.cache.interceptor.CacheErrorHandlernewSimpleCacheErrorHandler()Factory method for create the newSimpleCacheErrorHandlerobject.static org.springframework.cache.interceptor.CacheResolvernewSimpleCacheResolver()Factory method for create the newSimpleCacheResolverobject.static org.springframework.cache.interceptor.KeyGeneratornewSimpleKeyGenerator()Factory method for create the newSimpleKeyGeneratorobject.
-
-
-
Method Detail
-
newCacheManager
public static org.springframework.cache.CacheManager newCacheManager(org.springframework.cache.CacheManager... cacheCacheManager)
Factory method for create the new compositeCacheManagerfrom 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 newSimpleKeyGeneratorobject.- Returns:
- the new
SimpleKeyGenerator
-
newSimpleCacheResolver
public static org.springframework.cache.interceptor.CacheResolver newSimpleCacheResolver()
Factory method for create the newSimpleCacheResolverobject.- Returns:
- the new
SimpleCacheResolver
-
newSimpleCacheErrorHandler
public static org.springframework.cache.interceptor.CacheErrorHandler newSimpleCacheErrorHandler()
Factory method for create the newSimpleCacheErrorHandlerobject.- Returns:
- the new
SimpleCacheErrorHandler
-
newEhCacheManagerFactoryBean
public static org.springframework.cache.ehcache.EhCacheManagerFactoryBean newEhCacheManagerFactoryBean(java.lang.String ehcacheXmlFilename)
Factory method for create the newEhCacheManagerFactoryBeanobject from the given file name asStringobject.- 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 newEhCacheCacheManagerobject from the givenEhCacheManagerFactoryBeanobject.- Parameters:
cacheManagerFactoryBean- theEhCacheManagerFactoryBeanobject- Returns:
- the new
EhCacheCacheManager
-
-