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 Summary
Modifier and TypeMethodDescriptionresolveTemplate(CommandExecutionContext context, CommandMessageKey key) Resolves the template to use forkey.
-
Method Details
-
resolveTemplate
Resolves the template to use forkey.- Parameters:
context- the current execution context (e.g. for per-sender decisions)key- the key being rendered- Returns:
- the template to use, or
nullto fall back tokey.defaultTemplate()
-