Class DefaultMessageResolver

java.lang.Object
org.springframework.binding.message.DefaultMessageResolver
All Implemented Interfaces:
MessageResolver, org.springframework.context.MessageSourceResolvable

public class DefaultMessageResolver extends Object implements MessageResolver, org.springframework.context.MessageSourceResolvable
  • Constructor Details

  • Method Details

    • resolveMessage

      public Message resolveMessage(org.springframework.context.MessageSource messageSource, Locale locale)
      Description copied from interface: MessageResolver
      Resolve the message from the message source using the current locale.
      Specified by:
      resolveMessage in interface MessageResolver
      Parameters:
      messageSource - the message source, an abstraction for a resource bundle
      locale - the current locale of this request
      Returns:
      the resolved message
    • postProcessMessageText

      protected String postProcessMessageText(String text)
      Subclasses may override to perform special post-processing of the returned message text; for example, running it through an Expression evaluator.
      Parameters:
      text - the resolved message text
      Returns:
      the post processeed message text
    • getCodes

      public String[] getCodes()
      Specified by:
      getCodes in interface org.springframework.context.MessageSourceResolvable
    • getArguments

      public Object[] getArguments()
      Specified by:
      getArguments in interface org.springframework.context.MessageSourceResolvable
    • getDefaultMessage

      public String getDefaultMessage()
      Specified by:
      getDefaultMessage in interface org.springframework.context.MessageSourceResolvable
    • toString

      public String toString()
      Overrides:
      toString in class Object