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
ConstructorsConstructorDescriptionDefaultPaymentCustomerNotificationService(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender durableMessageSender, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSenderprotected com.broadleafcommerce.common.extension.TypeFactoryvoidsendNotification(@NonNull com.broadleafcommerce.paymentgateway.domain.PaymentCustomerNotification notification, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Sends thePaymentCustomerNotificationto 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:PaymentCustomerNotificationServiceSends thePaymentCustomerNotificationto the customer- Specified by:
sendNotificationin 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()
-