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>
A listener to read and filter events and send to
BusinessEventGateway-
Constructor Summary
ConstructorsConstructorDescriptionBusinessEventListener(@NotNull BusinessEventGateway gateway, @NotNull SupportedBusinessEventService supportedEventService, @NotNull TenantLifecycle lifecycle) Instantiates aBusinessEventListener -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonEvent(AbstractEvent abstractEvent) 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
-
BusinessEventListener
public BusinessEventListener(@NotNull @NotNull BusinessEventGateway gateway, @NotNull @NotNull SupportedBusinessEventService supportedEventService, @NotNull @NotNull TenantLifecycle lifecycle) Instantiates aBusinessEventListener- 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 BusinessEventlifecycle- A tenantLifecycle to regulate the operation of this listener
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<AbstractEvent>- Parameters:
abstractEvent- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-