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 Summary
ConstructorsConstructorDescriptionWebhookConfigurationRemovalEventListener(WebhookConfigurationService webhookService, WebhookBusinessEventTypeCacheService cacheService, ModelService mdlService) Instantiates the WebhookConfigurationRemovalEventListener. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonEvent(AfterItemRemovalEvent event) This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
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 typecacheService- the service to handle the cache from which the event type will be removedmdlService- service to remove the WebhookConfiguration with given event type
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterItemRemovalEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-