Class AbstractSimpleFormat

    • Field Detail

      • m_FlowContext

        protected transient Actor m_FlowContext
        the flow context.
    • Constructor Detail

      • AbstractSimpleFormat

        public AbstractSimpleFormat()
    • Method Detail

      • requiresFlowContext

        public boolean requiresFlowContext()
        Returns whether flow context is really required.
        Specified by:
        requiresFlowContext in interface SimpleFormat
        Returns:
        true if required
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected String check​(String msg)
        Hook method for checks before attempting to format the message.
        Default implementation accepts everything and only ensures that flow context is set if required.
        Parameters:
        msg - the message to format
        Returns:
        null if checks passed, otherwise error message
      • doFormatMessage

        protected abstract String doFormatMessage​(String msg)
        Formats the logging message and returns the updated message.
        Parameters:
        msg - the message to format
        Returns:
        the formatted message
      • formatMessage

        public String formatMessage​(String msg)
        Formats the logging message and returns the updated message.
        Specified by:
        formatMessage in interface SimpleFormat
        Parameters:
        msg - the message to format
        Returns:
        the formatted message