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:
  • Constructor Details

  • Method Details

    • getSource

      public T getSource()
      Overrides:
      getSource in class EventObject
    • getMessagePrefix

      protected abstract String getMessagePrefix()
      Mandatory message prefix, should contain information about the context <T>.
      Returns:
      Type, name and or version.
    • getExceptionMessage

      protected String getExceptionMessage(Exception e)
      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.