Class AbstractSimpleOutput

    • Field Detail

      • m_FlowContext

        protected transient Actor m_FlowContext
        the flow context.
    • Constructor Detail

      • AbstractSimpleOutput

        public AbstractSimpleOutput()
    • Method Detail

      • requiresFlowContext

        public boolean requiresFlowContext()
        Returns whether flow context is really required.
        Specified by:
        requiresFlowContext in interface SimpleOutput
        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 log the message.
        Default implementation accepts everything and only ensures that flow context is set if required.
        Parameters:
        msg - the message to log
        Returns:
        null if checks passed, otherwise error message
      • doLogMessage

        protected abstract String doLogMessage​(String msg)
        Logs the (formatted) logging message.
        Parameters:
        msg - the message to log
        Returns:
        null if successful, otherwise error message
      • logMessage

        public String logMessage​(String msg)
        Logs the (formatted) logging message.
        Specified by:
        logMessage in interface SimpleOutput
        Parameters:
        msg - the message to log
        Returns:
        null if successful, otherwise error message