Package de.hybris.platform.order.events
Class AfterSessionUserChangeListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterSessionUserChangeEvent>
de.hybris.platform.order.events.AfterSessionUserChangeListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
public class AfterSessionUserChangeListener
extends AbstractEventListener<AfterSessionUserChangeEvent>
Event listener to change the cart user if the current user has changed.
AfterSessionUserChangeEvent events are processed, which are fired after the current user is changed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CartServiceprotected UserServiceprotected 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
-
AfterSessionUserChangeListener
public AfterSessionUserChangeListener()
-
-
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:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getCartService
-
getUserService
-