Package com.skava.event.message
Class NotificationEventListener
java.lang.Object
com.skava.event.message.NotificationEventListener
@ConditionalOnProperty(prefix="skava.event",
name="enabled",
havingValue="true")
@Configuration
public class NotificationEventListener
extends Object
NotificationEventListener class.
The Class NotificationEventListener is used to listen to queues and process the received objects.- Version:
- $Id: $Id
- Author:
- Infosys Equinox
-
Constructor Summary
ConstructorsConstructorDescriptionNotificationEventListener
(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SendNotificationsService sendNotification) Instantiates a new notification event listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
This method is used to initialize the componentvoid
setEventClientComponent
(com.skava.core.event.EventClientComponent eventClientComponent) Sets the event client component.
-
Constructor Details
-
NotificationEventListener
@Autowired public NotificationEventListener(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SendNotificationsService sendNotification) Instantiates a new notification event listener.- Parameters:
objectMapper
- the object mappersendNotification
- the send notification
-
-
Method Details
-
setEventClientComponent
@Autowired(required=false) public void setEventClientComponent(com.skava.core.event.EventClientComponent eventClientComponent) Sets the event client component.- Parameters:
eventClientComponent
- the new event client component
-
init
@PostConstruct public void init()This method is used to initialize the component
-