SourceForge.net Logo

de.mindmatters.faces.spring.context.support
Class ManagedBeanDefinitionParser.FacesHierarchicalMessageSource

java.lang.Object
  extended byde.mindmatters.faces.spring.context.support.ManagedBeanDefinitionParser.FacesHierarchicalMessageSource
All Implemented Interfaces:
HierarchicalMessageSource, MessageSource
Enclosing class:
ManagedBeanDefinitionParser

public static final class ManagedBeanDefinitionParser.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

Constructor Summary
protected ManagedBeanDefinitionParser.FacesHierarchicalMessageSource()
          Creates a faces message source.
  ManagedBeanDefinitionParser.FacesHierarchicalMessageSource(java.util.List baseNames, java.lang.String defaultLocale, java.util.List supportedLocales)
          Creates a faces MessageSource with the given base-names, default locale and supported locales.
 
Method Summary
 java.lang.String getMessage(MessageSourceResolvable resolvable, java.util.Locale locale)
          
 java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.util.Locale locale)
          
 java.lang.String getMessage(java.lang.String code, java.lang.Object[] args, java.lang.String defaultMessage, java.util.Locale locale)
          
 MessageSource getParentMessageSource()
          
 void setParentMessageSource(MessageSource parent)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagedBeanDefinitionParser.FacesHierarchicalMessageSource

protected ManagedBeanDefinitionParser.FacesHierarchicalMessageSource()
Creates a faces message source.


ManagedBeanDefinitionParser.FacesHierarchicalMessageSource

public ManagedBeanDefinitionParser.FacesHierarchicalMessageSource(java.util.List baseNames,
                                                                  java.lang.String defaultLocale,
                                                                  java.util.List supportedLocales)
Creates a faces MessageSource with the given base-names, default locale and supported locales.

Parameters:
baseNames - names of the base message resource
defaultLocale - name of the default locale
supportedLocales - locales which are supported by this implementation
Method Detail

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)

Specified by:
getMessage in interface MessageSource

getMessage

public java.lang.String getMessage(java.lang.String code,
                                   java.lang.Object[] args,
                                   java.util.Locale locale)

Specified by:
getMessage in interface MessageSource

getMessage

public java.lang.String getMessage(MessageSourceResolvable resolvable,
                                   java.util.Locale locale)

Specified by:
getMessage in interface MessageSource

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG