Class WebhookConfigurationCreationEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<AfterItemCreationEvent>
de.hybris.platform.webhookservices.event.WebhookConfigurationCreationEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<AfterItemCreationEvent>
public class WebhookConfigurationCreationEventListener
extends AbstractEventListener<AfterItemCreationEvent>
Event listener for the
AfterItemCreationEvent which caches the eventType
after WebhookConfigurationModel with business event type is created-
Constructor Summary
ConstructorsConstructorDescriptionWebhookConfigurationCreationEventListener(@NotNull WebhookBusinessEventTypeCacheService cacheService, @NotNull ModelService ms) Instantiates aWebhookConfigurationCreationEventListener -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonEvent(AfterItemCreationEvent 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
-
WebhookConfigurationCreationEventListener
public WebhookConfigurationCreationEventListener(@NotNull @NotNull WebhookBusinessEventTypeCacheService cacheService, @NotNull @NotNull ModelService ms) Instantiates aWebhookConfigurationCreationEventListener- Parameters:
cacheService- cacheService dealing with the cache to which event types will be addedms- service to get item
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AfterItemCreationEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-