Class I18NextBundleMessageSource
java.lang.Object
org.springframework.context.support.MessageSourceSupport
org.springframework.context.support.AbstractMessageSource
org.springframework.context.support.AbstractResourceBasedMessageSource
org.springframework.context.support.ResourceBundleMessageSource
eu.rarogsoftware.rarog.platform.core.i18n.I18NextBundleMessageSource
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanClassLoaderAware,org.springframework.context.HierarchicalMessageSource,org.springframework.context.MessageSource
public class I18NextBundleMessageSource
extends org.springframework.context.support.ResourceBundleMessageSource
Implementation of
MessageSource that support I18Next files format.
Class in based on ResourceBundleMessageSource.-
Field Summary
Fields inherited from class org.springframework.context.support.MessageSourceSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ResourceBundledoGetBundle(String basename, Locale locale) protected MessageFormatgetMessageFormat(ResourceBundle bundle, String code, Locale locale) Methods inherited from class org.springframework.context.support.ResourceBundleMessageSource
getBundleClassLoader, getResourceBundle, getStringOrNull, loadBundle, loadBundle, resolveCode, resolveCodeWithoutArguments, setBeanClassLoader, setBundleClassLoader, toStringMethods inherited from class org.springframework.context.support.AbstractResourceBasedMessageSource
addBasenames, getBasenameSet, getCacheMillis, getDefaultEncoding, getDefaultLocale, isFallbackToSystemLocale, setBasename, setBasenames, setCacheMillis, setCacheSeconds, setDefaultEncoding, setDefaultLocale, setFallbackToSystemLocaleMethods inherited from class org.springframework.context.support.AbstractMessageSource
getCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, setCommonMessages, setParentMessageSource, setUseCodeAsDefaultMessageMethods inherited from class org.springframework.context.support.MessageSourceSupport
createMessageFormat, formatMessage, isAlwaysUseMessageFormat, renderDefaultMessage, setAlwaysUseMessageFormat
-
Constructor Details
-
I18NextBundleMessageSource
-
-
Method Details
-
doGetBundle
protected ResourceBundle doGetBundle(String basename, Locale locale) throws MissingResourceException - Overrides:
doGetBundlein classorg.springframework.context.support.ResourceBundleMessageSource- Throws:
MissingResourceException
-
getMessageFormat
@Nullable protected MessageFormat getMessageFormat(ResourceBundle bundle, String code, Locale locale) throws MissingResourceException - Overrides:
getMessageFormatin classorg.springframework.context.support.ResourceBundleMessageSource- Throws:
MissingResourceException
-