Package org.frankframework.lifecycle
Class MessageEventListener
java.lang.Object
org.frankframework.lifecycle.MessageEventListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<ApplicationMessageEvent>
public class MessageEventListener
extends Object
implements org.springframework.context.ApplicationListener<ApplicationMessageEvent>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet MessageKeeper for the application.getMessageKeeper
(String configurationName) Get MessageKeeper for a specific configuration.void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
MessageEventListener
public MessageEventListener()
-
-
Method Details
-
getMessageKeeper
Get MessageKeeper for the application. The MessageKeeper is not stored at the Configuration object instance to prevent messages being lost after configuration reload.- Returns:
- MessageKeeper for the application
-
getMessageKeeper
Get MessageKeeper for a specific configuration. The MessageKeeper is not stored at the Configuration object instance to prevent messages being lost after configuration reload.- Parameters:
configurationName
- configuration name to get the MessageKeeper object from- Returns:
- MessageKeeper for specified configurations
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<ApplicationMessageEvent>
-