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:
java.util.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 Constructor Description AfterSessionUserChangeListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CartService
getCartService()
protected UserService
getUserService()
protected void
onEvent(AfterSessionUserChangeEvent event)
This 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
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(AfterSessionUserChangeEvent event)
Description copied from class:AbstractEventListener
This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)
and processes the given event.- Specified by:
onEvent
in classAbstractEventListener<AfterSessionUserChangeEvent>
- Parameters:
event
- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
getCartService
protected CartService getCartService()
-
getUserService
protected UserService getUserService()
-
-