Class OfferEhcacheAutoConfiguration

java.lang.Object
com.broadleafcommerce.promotion.offer.autoconfigure.OfferEhcacheAutoConfiguration

@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({OfferCacheProperties.class,OfferCacheWeightProperties.class,OfferCacheSizeProperties.class}) public class OfferEhcacheAutoConfiguration extends Object
Configuration for engaging default Broadleaf support for Ehcache in the Offer service.
  • Constructor Details

    • OfferEhcacheAutoConfiguration

      public OfferEhcacheAutoConfiguration()
  • Method Details

    • offerEhcacheManagerCustomizer

      @Bean @ConditionalOnMissingBean(name="offerEhcacheManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager> offerEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, OfferCacheProperties props, OfferCacheWeightProperties weightProps, OfferCacheSizeProperties sizeProps)