Example usage for Java org.springframework.context.support ResourceBundleMessageSource fields, constructors, methods, implement or subclass
The text is from its open source code.
Set | getBasenameSet() Return this MessageSource 's basename set, containing entries in the order of registration. |
String | getMessage(String code, @Nullable Object[] args, Locale locale) |
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 | setBeanClassLoader(ClassLoader classLoader) |
void | setBundleClassLoader(ClassLoader classLoader) Set the ClassLoader to load resource bundles with. |
void | setCacheSeconds(int cacheSeconds) Set the number of seconds to cache loaded properties files. |
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 | setUseCodeAsDefaultMessage(boolean useCodeAsDefaultMessage) Set whether to use the message code as default message instead of throwing a NoSuchMessageException. |