Class WebhookConfigurationRemovalEventListener

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

public class WebhookConfigurationRemovalEventListener extends AbstractEventListener<AfterItemRemovalEvent>
Event listener for the AfterItemRemovalEvent which removes the eventType from the WebhookBusinessEventTypeCache when the WebhookConfigurationModel with business event type is in the removal process.
  • Constructor Details

    • WebhookConfigurationRemovalEventListener

      public WebhookConfigurationRemovalEventListener(@Nonnull WebhookConfigurationService webhookService, @Nonnull WebhookBusinessEventTypeCacheService cacheService, @Nonnull ModelService mdlService)
      Instantiates the WebhookConfigurationRemovalEventListener.
      Parameters:
      webhookService - service to search for other webhook configuration models having same event type
      cacheService - the service to handle the cache from which the event type will be removed
      mdlService - service to remove the WebhookConfiguration with given event type
  • Method Details