public class CompositeMessageSource extends AbstractMessageSource
EMPTY_OBJECT_ARGS, ERROR_ARGS_NULL, ERROR_KEY_BLANK, ERROR_LOCALE_NULL, ERROR_MESSAGE_NULLREF_KEY_END, REF_KEY_START| Constructor and Description |
|---|
CompositeMessageSource(Collection<MessageSource> messageSources) |
CompositeMessageSource(MessageSource[] messageSources) |
| Modifier and Type | Method and Description |
|---|---|
ResourceBundle |
asResourceBundle()
Offers a view of this
MessageSource as a ResourceBundle. |
protected Object |
doResolveMessageValue(String key,
Locale locale) |
evalMessageWithArguments, evalMessageWithArguments, formatMessage, formatMessage, formatMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, resolveMessageValue, toObjectArraypublic CompositeMessageSource(@Nonnull Collection<MessageSource> messageSources)
public CompositeMessageSource(@Nonnull MessageSource[] messageSources)
@Nonnull protected Object doResolveMessageValue(@Nonnull String key, @Nonnull Locale locale) throws NoSuchMessageException
doResolveMessageValue in class AbstractMessageSourceNoSuchMessageException@Nonnull public ResourceBundle asResourceBundle()
MessageSourceMessageSource as a ResourceBundle.ResourceBundle containing the keys this MessageSource
can resolve.