public class DefaultMessageSource 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 |
---|
DefaultMessageSource(CompositeResourceBundleBuilder builder,
java.lang.String basename) |
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) |
java.lang.String |
getBasename() |
protected java.util.ResourceBundle |
getBundle(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 DefaultMessageSource(@Nonnull CompositeResourceBundleBuilder builder, @Nonnull java.lang.String basename)
@Nonnull public java.lang.String getBasename()
@Nonnull protected java.lang.Object doResolveMessageValue(@Nonnull java.lang.String key, @Nonnull java.util.Locale locale) throws NoSuchResourceException
doResolveMessageValue
in class AbstractMessageSource
NoSuchResourceException
@Nonnull protected java.util.ResourceBundle getBundle(@Nonnull java.util.Locale locale)
@Nonnull public java.util.ResourceBundle asResourceBundle()
MessageSource
MessageSource
as a ResourceBundle
.ResourceBundle
containing the keys this MessageSource
can resolve.