Class ContentEhcacheAutoConfiguration
java.lang.Object
com.broadleafcommerce.content.autoconfigure.ContentEhcacheAutoConfiguration
@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({ContentCacheProperties.class,ContentCacheWeightProperties.class,ContentCacheSizeProperties.class})
public class ContentEhcacheAutoConfiguration
extends Object
Configuration for engaging default Broadleaf support for Ehcache in the Content service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager>contentEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, ContentCacheProperties props, ContentCacheWeightProperties weightProps, ContentCacheSizeProperties sizeProps)
-
Constructor Details
-
ContentEhcacheAutoConfiguration
public ContentEhcacheAutoConfiguration()
-
-
Method Details
-
contentEhcacheManagerCustomizer
@Bean @ConditionalOnMissingBean(name="contentEhcacheManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager> contentEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, ContentCacheProperties props, ContentCacheWeightProperties weightProps, ContentCacheSizeProperties sizeProps)
-