Class MenuCachePropertiesEnvironmentPostProcessor

java.lang.Object
com.broadleafcommerce.menu.autoconfigure.MenuCachePropertiesEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor

public class MenuCachePropertiesEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor
Conditionally adds stream kafka bindings properties for cache invalidation to the env when property broadleaf.menu.cache.invalidation.active is true.
Since:
Menu Service 2.0.3, Release Train 2.1.4, Release Train 2.2.0
  • Constructor Details

    • MenuCachePropertiesEnvironmentPostProcessor

      public MenuCachePropertiesEnvironmentPostProcessor()
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Post processor property implementation for menu cache invalidation. This is set up so the kafka channel is optional which assists in keeping backwards compatibility.
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor