Class AuthEhcacheAutoConfiguration
java.lang.Object
com.broadleafcommerce.auth.cache.autoconfigure.AuthEhcacheAutoConfiguration
@Configuration
@Conditional(com.broadleafcommerce.common.extension.cache.condition.OnEnabledCacheCondition.class)
@ConditionalOnClass(org.springframework.cache.jcache.JCacheCacheManager.class)
@ConditionalOnProperty(value="com.broadleafcommerce.cache.activeCacheManagerImplementation",
havingValue="com.broadleafcommerce.common.extension.cache.ehcache.EhcacheAutoConfiguration")
@EnableConfigurationProperties({AuthCacheProperties.class,AuthCacheWeightProperties.class,AuthCacheSizeProperties.class})
public class AuthEhcacheAutoConfiguration
extends Object
Configuration for engaging default Broadleaf support for Ehcache in the Auth service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager>authEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, AuthCacheProperties props, AuthCacheWeightProperties weightProps, AuthCacheSizeProperties sizeProps)
-
Constructor Details
-
AuthEhcacheAutoConfiguration
public AuthEhcacheAutoConfiguration()
-
-
Method Details
-
authEhcacheManagerCustomizer
@Bean @ConditionalOnMissingBean(name="authEhcacheManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager> authEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, AuthCacheProperties props, AuthCacheWeightProperties weightProps, AuthCacheSizeProperties sizeProps)
-