Class AssistedServiceCartRecalculator

  • All Implemented Interfaces:
    java.util.EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<SessionEvent>

    public class AssistedServiceCartRecalculator
    extends AbstractEventListener<SessionEvent>
    Assisted service event listener for SessionEvent event. Recalculates cart because there can be specific promotions that are only applicable if the ASM emulation is active.
    • Constructor Detail

      • AssistedServiceCartRecalculator

        public AssistedServiceCartRecalculator()
    • Method Detail

      • onEvent

        protected void onEvent​(SessionEvent event)
        Description copied from class: AbstractEventListener
        This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
        Specified by:
        onEvent in class AbstractEventListener<SessionEvent>
        Parameters:
        event - the event to be processed
        See Also:
        ApplicationListener.onApplicationEvent(ApplicationEvent)
      • setCommerceCartService

        public void setCommerceCartService​(CommerceCartService commerceCartService)
      • getCartService

        protected CartService getCartService()
      • setCartService

        public void setCartService​(CartService cartService)