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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
String[]
getCodes()
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.resolveMessage
(org.springframework.context.MessageSource messageSource, Locale locale) Resolve the message from the message source using the current locale.toString()
-
Constructor Details
-
DefaultMessageResolver
-
-
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 interfaceMessageResolver
- Parameters:
messageSource
- the message source, an abstraction for a resource bundlelocale
- the current locale of this request- Returns:
- the resolved message
-
postProcessMessageText
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
- Specified by:
getCodes
in interfaceorg.springframework.context.MessageSourceResolvable
-
getArguments
- Specified by:
getArguments
in interfaceorg.springframework.context.MessageSourceResolvable
-
getDefaultMessage
- Specified by:
getDefaultMessage
in interfaceorg.springframework.context.MessageSourceResolvable
-
toString
-