Class NotificationOrderSubmittedEventListener
java.lang.Object
org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener<OrderSubmittedEvent>
org.broadleafcommerce.core.order.event.NotificationOrderSubmittedEventListener
- All Implemented Interfaces:
EventListener,BroadleafApplicationListener<OrderSubmittedEvent>,org.springframework.context.ApplicationListener<OrderSubmittedEvent>
@Component("blNotificationOrderSubmittedEventListener")
public class NotificationOrderSubmittedEventListener
extends AbstractBroadleafApplicationEventListener<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 NotificationDispatcherprotected static final Stringprotected OrderServiceFields inherited from class org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener
currencyService, localeService, siteService -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.broadleafcommerce.common.event.AbstractBroadleafApplicationEventListener
getCatalog, getCurrency, getLocale, getProfile, getSite, getTimeZone, onApplicationEvent
-
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 NotificationDispatcher notificationDispatcher
-
-
Constructor Details
-
NotificationOrderSubmittedEventListener
public NotificationOrderSubmittedEventListener()
-
-
Method Details
-
handleApplicationEvent
- Specified by:
handleApplicationEventin classAbstractBroadleafApplicationEventListener<OrderSubmittedEvent>
-
createContext
-
isAsynchronous
public boolean isAsynchronous()
-