Class ProductConfigUserChangedEventListener

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
    Direct Known Subclasses:
    ProductConfigUserChangedEventListenerTest.ProductConfigUserChangedEventListenerForTest

    public class ProductConfigUserChangedEventListener
    extends AbstractEventListener<AfterSessionUserChangeEvent>
    This bean listens to the AfterSessionUserChangeEvent. It will clear the read cache of the configuration engine for any configuration stored in the user session. This will ensure that configuration data is re-read and that rule evaluation is re-triggered. So rule framework and configuration engine can immediately react on the user change.
    Otherwise configuration engine and rules changes would only be visible after the next change of the corresponding configuration.