Package org.appng.api.support
Class ResourceBundleMessageSource
- java.lang.Object
-
- org.springframework.context.support.MessageSourceSupport
-
- org.springframework.context.support.AbstractMessageSource
-
- org.springframework.context.support.AbstractResourceBasedMessageSource
-
- org.springframework.context.support.ResourceBundleMessageSource
-
- org.appng.api.support.ResourceBundleMessageSource
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanClassLoaderAware
,org.springframework.context.HierarchicalMessageSource
,org.springframework.context.MessageSource
public class ResourceBundleMessageSource extends org.springframework.context.support.ResourceBundleMessageSource
AResourceBundleMessageSource
that can retrieve the available keys.- Author:
- Matthias Müller
-
-
Constructor Summary
Constructors Constructor Description ResourceBundleMessageSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
getKeys(Locale locale)
Returns the keys for the given locale-
Methods inherited from class org.springframework.context.support.ResourceBundleMessageSource
doGetBundle, getBundleClassLoader, getMessageFormat, getResourceBundle, getStringOrNull, loadBundle, loadBundle, resolveCode, resolveCodeWithoutArguments, setBeanClassLoader, setBundleClassLoader, toString
-
Methods inherited from class org.springframework.context.support.AbstractResourceBasedMessageSource
addBasenames, getBasenameSet, getCacheMillis, getDefaultEncoding, getDefaultLocale, isFallbackToSystemLocale, setBasename, setBasenames, setCacheMillis, setCacheSeconds, setDefaultEncoding, setDefaultLocale, setFallbackToSystemLocale
-
Methods inherited from class org.springframework.context.support.AbstractMessageSource
getCommonMessages, getDefaultMessage, getDefaultMessage, getMessage, getMessage, getMessage, getMessageFromParent, getMessageInternal, getParentMessageSource, isUseCodeAsDefaultMessage, resolveArguments, setCommonMessages, setParentMessageSource, setUseCodeAsDefaultMessage
-
-
-
-
Method Detail
-
getKeys
public Set<String> getKeys(Locale locale)
Returns the keys for the given locale- Parameters:
locale
- theLocale
to get the keys for- Returns:
- a (sorted) set of keys
- See Also:
ResourceBundle.keySet()
-
-