Class GenericMessageTemplateDef

  • All Implemented Interfaces:
    MessageTemplateDefinition

    @Component
    public class GenericMessageTemplateDef
    extends java.lang.Object
    implements MessageTemplateDefinition
    This message template definition is not used directly, but can be used to create parts of template which are reused in other templates.
    Author:
    K. Benedyczak
    • Constructor Detail

      • GenericMessageTemplateDef

        public GenericMessageTemplateDef()
    • Method Detail

      • getDescriptionKey

        public java.lang.String getDescriptionKey()
        Specified by:
        getDescriptionKey in interface MessageTemplateDefinition
        Returns:
        message bundle key with the description of the template definition, with information on the purpose of the messages created with this template.
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface MessageTemplateDefinition
        Returns:
        unique name of the message template definition
      • getVariables

        public java.util.Map<java.lang.String,​MessageTemplateVariable> getVariables()
        Specified by:
        getVariables in interface MessageTemplateDefinition
        Returns:
        map of variables supported by this template consumer. The map keys are variable names. The values are the keys in the message bundle with descriptions.