Class ProductConfigUserChangedEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterSessionUserChangeEvent>
de.hybris.platform.sap.productconfig.services.event.impl.ProductConfigUserChangedEventListener
- All Implemented Interfaces:
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
Otherwise configuration engine and rules changes would only be visible after the next change of the corresponding configuration.
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationLifecycleStrategyprotected Userprotected ProductConfigEventListenerUtilprotected voidprotected voidThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
ProductConfigUserChangedEventListener
public ProductConfigUserChangedEventListener()
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterSessionUserChangeEvent>- Parameters:
evt- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getConfigurationLifecycleStrategy
-
getProductConfigEventListenerUtil
-
logUserInfo
-
getCurrentUser
-