public class SpringMessageResolver extends Object implements MessageResolver
MessageSource.| Constructor and Description |
|---|
SpringMessageResolver(org.springframework.context.MessageSource messageSource)
Create a new instance with the locale associated with the current thread.
|
SpringMessageResolver(org.springframework.context.MessageSource messageSource,
Locale locale)
Create a new instance with the specified locale.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(RuleResultDetail detail)
Resolves the message for the supplied rule result detail using Spring's
MessageSource. |
public SpringMessageResolver(org.springframework.context.MessageSource messageSource)
messageSource - a message source managed by springpublic SpringMessageResolver(org.springframework.context.MessageSource messageSource,
Locale locale)
messageSource - a message source managed by springlocale - the locale to use for message accesspublic String resolve(RuleResultDetail detail)
MessageSource.
(If the message can't retrieve from a MessageSource, return default message provided by passay)resolve in interface MessageResolverdetail - rule result detailCopyright © 2003-2024 Virginia Tech. All Rights Reserved.