Class BusinessEventListener

java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AbstractEvent>
de.hybris.platform.webhookservices.event.BusinessEventListener
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<AbstractEvent>

public class BusinessEventListener extends AbstractEventListener<AbstractEvent>
A listener to read and filter events and send to BusinessEventGateway
  • Constructor Details

    • BusinessEventListener

      public BusinessEventListener(@NotNull @NotNull BusinessEventGateway gateway, @NotNull @NotNull SupportedBusinessEventService supportedEventService, @NotNull @NotNull TenantLifecycle lifecycle)
      Instantiates a BusinessEventListener
      Parameters:
      gateway - A gateway for entering the Spring Integrations channels for processing the Business Events for webhooks.
      supportedEventService - A service for determining if an event is a supported BusinessEvent
      lifecycle - A tenantLifecycle to regulate the operation of this listener
  • Method Details

    • onEvent

      protected void onEvent(AbstractEvent abstractEvent)
      Description copied from class: AbstractEventListener
      This method is called by ApplicationListener.onApplicationEvent(ApplicationEvent) and processes the given event.
      Specified by:
      onEvent in class AbstractEventListener<AbstractEvent>
      Parameters:
      abstractEvent - the event to be processed
      See Also:
      • ApplicationListener.onApplicationEvent(ApplicationEvent)