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:
AdapterMessageEvent,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
ConstructorsModifierConstructorDescriptionprotectedMessageEvent(T source, String message, MessageEventLevel level, Throwable e) -
Method Summary
Methods inherited from class org.springframework.context.event.ApplicationContextEvent
getApplicationContextMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
MessageEvent
-
-
Method Details
-
getSource
- Overrides:
getSourcein 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.
-