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

    Constructors
    Constructor
    Description
    DefaultPaymentCustomerNotificationService(com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender durableMessageSender, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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 the PaymentCustomerNotification to the customer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 the PaymentCustomerNotification to the customer
      Specified by:
      sendNotification in interface PaymentCustomerNotificationService
      Parameters:
      notification - the notification to send
      contextInfo - context information surrounding multitenant state
    • getDurableMessageSender

      protected com.broadleafcommerce.common.messaging.notification.DetachedDurableMessageSender getDurableMessageSender()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()