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(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, toObjectArray
public 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 AbstractMessageSource
NoSuchMessageException
@Nonnull public ResourceBundle asResourceBundle()
MessageSource
MessageSource
as a ResourceBundle
.ResourceBundle
containing the keys this MessageSource
can resolve.