Example usage for Java org.springframework.context.support ReloadableResourceBundleMessageSource fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addBasenames(String... basenames) Add the specified basenames to the existing basename configuration. |
void | clearCacheIncludingAncestors() Clear the resource bundle caches of this MessageSource and all its ancestors. |
String | getMessage(String code, @Nullable Object[] args, Locale locale) |
String | getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale) |
void | setAlwaysUseMessageFormat(boolean alwaysUseMessageFormat) Set whether to always apply the MessageFormat rules, parsing even messages without arguments. |
void | setBasename(String basename) Set a single basename, following the basic ResourceBundle convention of not specifying file extension or language codes. |
void | setBasenames(String... basenames) Set an array of basenames, each following the basic ResourceBundle convention of not specifying file extension or language codes. |
void | setCacheSeconds(int cacheSeconds) Set the number of seconds to cache loaded properties files. |
void | setCommonMessages(@Nullable Properties commonMessages) Specify locale-independent common messages, with the message code as key and the full message String (may contain argument placeholders) as value. |
void | setDefaultEncoding(@Nullable String defaultEncoding) Set the default charset to use for parsing properties files. |
void | setFallbackToSystemLocale(boolean fallbackToSystemLocale) Set whether to fall back to the system Locale if no files for a specific Locale have been found. |
void | setParentMessageSource(@Nullable MessageSource parent) |
void | setPropertiesPersister(@Nullable PropertiesPersister propertiesPersister) Set the PropertiesPersister to use for parsing properties files. |
void | setResourceLoader(@Nullable ResourceLoader resourceLoader) Set the ResourceLoader to use for loading bundle properties files. |
void | setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage) Set whether to use the message code as default message instead of throwing a NoSuchMessageException. |