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