Class MessageEvent<T extends org.springframework.context.ApplicationContext>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.context.event.ApplicationContextEvent
org.frankframework.lifecycle.events.MessageEvent<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApplicationMessageEvent
,ConfigurationMessageEvent
public abstract class MessageEvent<T extends org.springframework.context.ApplicationContext>
extends org.springframework.context.event.ApplicationContextEvent
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MessageEvent
(T source, String message, MessageEventLevel level, Exception e) -
Method Summary
Methods inherited from class org.springframework.context.event.ApplicationContextEvent
getApplicationContext
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
MessageEvent
-
-
Method Details
-
getSource
- Overrides:
getSource
in classEventObject
-
getMessagePrefix
Mandatory message prefix, should contain information about the context<T>
.- Returns:
- Type, name and or version.
-
getExceptionMessage
Optional formatted error message. This is not logged, as it's part of the stacktrace.- Parameters:
e
- The exception that was thrown (if any)- Returns:
- The formatted exception message.
-