Class DefaultPaymentCustomerNotificationService
java.lang.Object
com.broadleafcommerce.paymenttransaction.service.messaging.customer.notification.DefaultPaymentCustomerNotificationService
- All Implemented Interfaces:
PaymentCustomerNotificationService
public class DefaultPaymentCustomerNotificationService
extends Object
implements PaymentCustomerNotificationService
The default implementation of
PaymentCustomerNotificationService
that uses
DetachedDurableMessageSender
to send the customer notifications to the
PaymentCustomerNotificationProducer.CHANNEL
.
The PaymentCustomerNotification
is wrapped with
PaymentCustomerNotificationDecorator
that additionally holds the ContextInfo
.
- Author:
- Dima Myroniuk (dmyroniuk)
- See Also:
-
Constructor Summary
ConstructorDescriptionDefaultPaymentCustomerNotificationService
(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender durableMessageSender, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender
protected com.broadleafcommerce.common.extension.TypeFactory
void
sendNotification
(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends thePaymentCustomerNotification
to the customer
-
Constructor Details
-
DefaultPaymentCustomerNotificationService
public DefaultPaymentCustomerNotificationService(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender durableMessageSender, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
-
Method Details
-
sendNotification
public void sendNotification(@NonNull @NonNull com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification notification, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:PaymentCustomerNotificationService
Sends thePaymentCustomerNotification
to the customer- Specified by:
sendNotification
in interfacePaymentCustomerNotificationService
- Parameters:
notification
- the notification to sendcontextInfo
- context information surrounding multitenant state
-
getDurableMessageSender
protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender getDurableMessageSender() -
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-