Class OfferCachePropertiesEnvironmentPostProcessor
java.lang.Object
com.broadleafcommerce.promotion.offer.autoconfigure.OfferCachePropertiesEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
public class OfferCachePropertiesEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
Conditionally adds stream kafka bindings properties for cache invalidation to the env when
property broadleaf.offer.cache.invalidation.active is true.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
postProcessEnvironment
(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) Post processor property implementation for offer cache invalidation.
-
Constructor Details
-
OfferCachePropertiesEnvironmentPostProcessor
public OfferCachePropertiesEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) Post processor property implementation for offer cache invalidation. This is set up so the kafka channel is optional which assists in keeping backwards compatibility.- Specified by:
postProcessEnvironment
in interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-