Interface CommandMessageSource


public interface CommandMessageSource
Customization point for command messages raised via CommandMessageException. Register an implementation as a bean to override the text for one or more CommandMessageKeys.
  • Method Details

    • resolveTemplate

      String resolveTemplate(CommandExecutionContext context, CommandMessageKey key)
      Resolves the template to use for key.
      Parameters:
      context - the current execution context (e.g. for per-sender decisions)
      key - the key being rendered
      Returns:
      the template to use, or null to fall back to key.defaultTemplate()