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 Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected final org.apache.commons.logging.Logprotected org.broadleafcommerce.common.notification.service.NotificationDispatcherprotected static final Stringprotected OrderServiceFields inherited from class org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener
currencyService, localeService, siteService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Order order) protected voidhandleApplicationEvent(org.broadleafcommerce.common.event.OrderSubmittedEvent event) booleanMethods inherited from class org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener
getCatalog, getCurrency, getLocale, getProfile, getSite, getTimeZone, onApplicationEventMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Field Details
-
ORDER_CONTEXT_KEY
- See Also:
-
CUSTOMER_CONTEXT_KEY
- See Also:
-
LOG
protected final org.apache.commons.logging.Log LOG -
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:
handleApplicationEventin classorg.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<org.broadleafcommerce.common.event.OrderSubmittedEvent>
-
createContext
-
isAsynchronous
public boolean isAsynchronous()
-