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