org.springframework.web.jsf
Class FacesConfigXmlBeanDefinitionParser.FacesHierarchicalMessageSource
java.lang.Object
org.springframework.web.jsf.FacesConfigXmlBeanDefinitionParser.FacesHierarchicalMessageSource
- All Implemented Interfaces:
- HierarchicalMessageSource, MessageSource
- Enclosing class:
- FacesConfigXmlBeanDefinitionParser
- public static final class FacesConfigXmlBeanDefinitionParser.FacesHierarchicalMessageSource
- extends java.lang.Object
- implements HierarchicalMessageSource
JSF implementation of a HierarchicalMessageSource.
Checks if the given Locale is supported. See "locale-config" tag in the
"faces-config" DTD.
- Author:
- Andreas Kuhrwahl, Thomas Jachmann
- See Also:
ResourceBundleMessageSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacesConfigXmlBeanDefinitionParser.FacesHierarchicalMessageSource
public FacesConfigXmlBeanDefinitionParser.FacesHierarchicalMessageSource(java.lang.String baseName,
java.lang.String defaultLocale,
java.lang.String[] supportedLocales)
- Parameters:
baseName - name of the base message resourcesupportedLocales - locales which are supported by this implementation
setParentMessageSource
public void setParentMessageSource(MessageSource parent)
- Specified by:
setParentMessageSource in interface HierarchicalMessageSource
getParentMessageSource
public MessageSource getParentMessageSource()
- Specified by:
getParentMessageSource in interface HierarchicalMessageSource
getMessage
public java.lang.String getMessage(java.lang.String code,
java.lang.Object[] args,
java.lang.String defaultMessage,
java.util.Locale locale)
- Returns
defaultMessage if Locale locale is not supported.
- Specified by:
getMessage in interface MessageSource
getMessage
public java.lang.String getMessage(java.lang.String code,
java.lang.Object[] args,
java.util.Locale locale)
throws NoSuchMessageException
- Specified by:
getMessage in interface MessageSource
- Throws:
NoSuchMessageException - if Locale locale is not supported
getMessage
public java.lang.String getMessage(MessageSourceResolvable resolvable,
java.util.Locale locale)
throws NoSuchMessageException
- Specified by:
getMessage in interface MessageSource
- Throws:
NoSuchMessageException - if Locale locale is not supported