java.lang.Object
es.kukenan.smartfi.microservice.contracts.service.events.backoffice.BackofficeEventManager

@Component public class BackofficeEventManager extends Object
Backoffice event manager.
  • Field Details

    • backofficeEvents

      private final List<BackofficeEvent> backofficeEvents
      Backoffice events list.
  • Constructor Details

    • BackofficeEventManager

      public BackofficeEventManager(List<BackofficeEvent> backofficeEvents)
      Constructor.
      Parameters:
      backofficeEvents - Backoffice events list
  • Method Details

    • findHandler

      public BackofficeEvent findHandler(es.kukenan.smartfi.microservice.backoffice.events.created.BackOfficeProductCreatedEvent backOfficeProductCreatedEvent)
      Find handler for backOfficeProductCreatedEvent.
      Parameters:
      backOfficeProductCreatedEvent - event
      Returns:
      the handler found.
    • findHandler

      public BackofficeEvent findHandler(es.kukenan.smartfi.microservice.backoffice.events.update.BackOfficeProductUpdatedEvent backOfficeProductUpdatedEvent)
      Find handler for backOfficeProductCreatedEvent.
      Parameters:
      backOfficeProductUpdatedEvent - event
      Returns:
      the handler found.
    • findHandler

      public BackofficeEvent findHandler(es.kukenan.smartfi.microservice.backoffice.events.cancelled.BackOfficeProductCancelledEvent backOfficeProductCancelledEvent)
      Find handler for backOfficeProductCancelledEvent.
      Parameters:
      backOfficeProductCancelledEvent - event
      Returns:
      the handler found.