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