Class TranslationEhcacheAutoConfiguration

java.lang.Object
com.broadleafcommerce.translation.autoconfigure.TranslationEhcacheAutoConfiguration

@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({TranslationCacheProperties.class,TranslationCacheWeightProperties.class,TranslationCacheSizeProperties.class}) public class TranslationEhcacheAutoConfiguration extends Object
Configuration for engaging default Broadleaf support for Ehcache in the Translation service.
  • Constructor Details

    • TranslationEhcacheAutoConfiguration

      public TranslationEhcacheAutoConfiguration()
  • Method Details

    • translationEhcacheManagerCustomizer

      @Bean @ConditionalOnMissingBean(name="translationEhcacheManagerCustomizer") public org.springframework.boot.autoconfigure.cache.CacheManagerCustomizer<org.springframework.cache.jcache.JCacheCacheManager> translationEhcacheManagerCustomizer(com.broadleafcommerce.common.extension.cache.ehcache.EhcacheBudgetManager budgetManager, TranslationCacheProperties props, TranslationCacheWeightProperties weightProps, TranslationCacheSizeProperties sizeProps)