Class NotificationOrderSubmittedEventListener

java.lang.Object
org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>
org.broadleafcommerce.core.order.event.NotificationOrderSubmittedEventListener
All Implemented Interfaces:
EventListener, org.broadleafcommerce.common.event.BroadleafApplicationListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>, org.springframework.context.ApplicationListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>

@Component("blNotificationOrderSubmittedEventListener") public class NotificationOrderSubmittedEventListener extends org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>
This event listener is responsible for sending any notifications in response to an OrderSubmittedEvent. By default, this listener will handle the event synchronously unless the BroadleafApplicationEventMulticaster is injected and configured correctly to handle asynchronous events.
Author:
Nick Crum ncrum
See Also:
  • Field Details

    • ORDER_CONTEXT_KEY

      protected static final String ORDER_CONTEXT_KEY
      See Also:
    • CUSTOMER_CONTEXT_KEY

      protected static final String CUSTOMER_CONTEXT_KEY
      See Also:
    • LOG

      protected final org.apache.commons.logging.Log LOG
    • orderService

      @Autowired @Qualifier("blOrderService") protected OrderService orderService
    • notificationDispatcher

      @Autowired @Qualifier("blNotificationDispatcher") protected org.broadleafcommerce.common.notification.service.NotificationDispatcher notificationDispatcher
  • Constructor Details

    • NotificationOrderSubmittedEventListener

      public NotificationOrderSubmittedEventListener()
  • Method Details

    • handleApplicationEvent

      protected void handleApplicationEvent(org.broadleafcommerce.common.event.OrderSubmittedEvent event)
      Specified by:
      handleApplicationEvent in class org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>
    • createContext

      protected Map<String,Object> createContext(Order order)
    • isAsynchronous

      public boolean isAsynchronous()