All Known Implementing Classes:
MessageProcessor
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Processor
A functional interface representing the final stage in the message pipeline: transforming a ValidMessageRecord into a FinalMessageRecord by resolving and replacing all macro placeholders.

This step is typically performed after a message record has been retrieved and all necessary context objects have been registered to a MacroObjectMap.

Macro resolution is delegated internally to a Resolver, and placeholder substitution is handled by a Replacer.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    process(ValidMessageRecord messageRecord, MacroObjectMap macroObjectMap)
    Processes a valid message record by replacing all macros using the provided macro object map.
  • Method Details

    • process

      FinalMessageRecord process(ValidMessageRecord messageRecord, MacroObjectMap macroObjectMap)
      Processes a valid message record by replacing all macros using the provided macro object map.

      This includes macro substitution in the message body, title, and subtitle fields. The result is a FinalMessageRecord containing the final rendered strings ready for output.

      Parameters:
      messageRecord - the message record to process
      macroObjectMap - the context data used to resolve placeholder values
      Returns:
      a new FinalMessageRecord with all macros resolved