public class ICUBundleMessageSource
extends org.springframework.context.support.ReloadableResourceBundleMessageSource
| Modifier and Type | Class and Description |
|---|---|
protected class |
ICUBundleMessageSource.PropertiesHolder
Override
|
| Constructor and Description |
|---|
ICUBundleMessageSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCache() |
protected java.text.MessageFormat |
createMessageFormat(java.lang.String msg,
java.util.Locale locale) |
protected com.ibm.icu.text.MessageFormat |
createMessageFormatICU(java.lang.String msg,
java.util.Locale locale) |
protected ICUBundleMessageSource.PropertiesHolder |
getMergedProperties(java.util.Locale locale) |
protected ICUBundleMessageSource.PropertiesHolder |
getProperties(java.lang.String filename) |
protected void |
mergePluginProperties(java.util.Locale locale,
java.util.Properties mergedProps) |
ICUBundleMessageSource.PropertiesHolder |
refreshPropertiesICU(java.lang.String filename,
ICUBundleMessageSource.PropertiesHolder propHolder) |
protected java.text.MessageFormat |
resolveCode(java.lang.String code,
java.util.Locale locale) |
protected com.ibm.icu.text.MessageFormat |
resolveCodeICU(java.lang.String code,
java.util.Locale locale)
Resolves the given message code as key in the retrieved bundle files,
using a cached MessageFormat instance per message code.
|
calculateAllFilenames, calculateFilenamesForLocale, clearCacheIncludingAncestors, loadProperties, newProperties, refreshProperties, resolveCodeWithoutArguments, setConcurrentRefresh, setFileEncodings, setPropertiesPersister, setResourceLoader, toStringaddBasenames, getBasenameSet, getCacheMillis, getDefaultEncoding, isFallbackToSystemLocale, setBasename, setBasenames, setCacheMillis, setCacheSeconds, setDefaultEncoding, setFallbackToSystemLocalegetCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, setCommonMessages, setParentMessageSource, setUseCodeAsDefaultMessage@Nullable
protected java.text.MessageFormat resolveCode(java.lang.String code,
java.util.Locale locale)
resolveCode in class org.springframework.context.support.ReloadableResourceBundleMessageSource@Nullable
protected com.ibm.icu.text.MessageFormat resolveCodeICU(java.lang.String code,
java.util.Locale locale)
protected void mergePluginProperties(java.util.Locale locale,
java.util.Properties mergedProps)
protected ICUBundleMessageSource.PropertiesHolder getMergedProperties(java.util.Locale locale)
getMergedProperties in class org.springframework.context.support.ReloadableResourceBundleMessageSourceprotected ICUBundleMessageSource.PropertiesHolder getProperties(java.lang.String filename)
getProperties in class org.springframework.context.support.ReloadableResourceBundleMessageSourcepublic ICUBundleMessageSource.PropertiesHolder refreshPropertiesICU(java.lang.String filename, @Nullable ICUBundleMessageSource.PropertiesHolder propHolder)
public void clearCache()
clearCache in class org.springframework.context.support.ReloadableResourceBundleMessageSourceprotected com.ibm.icu.text.MessageFormat createMessageFormatICU(java.lang.String msg,
java.util.Locale locale)
protected java.text.MessageFormat createMessageFormat(java.lang.String msg,
java.util.Locale locale)
createMessageFormat in class org.springframework.context.support.MessageSourceSupport