public interface MessageProvider
MessageProvider provides messages for a CompositeMessageSource.
There can be multiple message provider beans in the same application context.| Modifier and Type | Method and Description |
|---|---|
void |
clearCache()
Clears any internal caches, forcing the message provider to resolve the codes from the original message source.
|
MessageFormat |
resolveCode(String s,
Locale locale)
Attempts to resolve the specified code for the specified locale.
|
MessageFormat resolveCode(String s, Locale locale)
s - the code of the message, must not be null.locale - the locale, must not be null.MessageFormat for the message, or null if not found.void clearCache()
Copyright © 2017. All rights reserved.