SRJRCFrames
v0.1.296

de.schwarzrot.data.access
Class DelegatingResourceBundleMessageSource

java.lang.Object
  extended by de.schwarzrot.data.access.DelegatingResourceBundleMessageSource
All Implemented Interfaces:
HierarchicalMessageSource, MessageSource

public class DelegatingResourceBundleMessageSource
extends Object
implements HierarchicalMessageSource

special implementation of a HierarchicalMessageSource, that can be extended at runtime.

Author:
Reinhard Mantey

Constructor Summary
DelegatingResourceBundleMessageSource()
           
DelegatingResourceBundleMessageSource(MessageSource defaultMessageSource)
           
 
Method Summary
 void addMessageSource(MessageSource ms)
          add a new MessageSource to the tree of known messageSources
 String getMessage(MessageSourceResolvable resolvable, Locale locale)
           
 String getMessage(String code, Object[] args, Locale locale)
           
 String getMessage(String code, Object[] args, String defaultMessage, 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

DelegatingResourceBundleMessageSource

public DelegatingResourceBundleMessageSource()

DelegatingResourceBundleMessageSource

public DelegatingResourceBundleMessageSource(MessageSource defaultMessageSource)
Method Detail

addMessageSource

public void addMessageSource(MessageSource ms)
add a new MessageSource to the tree of known messageSources

Parameters:
ms - - the MessageSource to add

getMessage

public final String getMessage(MessageSourceResolvable resolvable,
                               Locale locale)
                        throws NoSuchMessageException
Specified by:
getMessage in interface MessageSource
Throws:
NoSuchMessageException

getMessage

public final String getMessage(String code,
                               Object[] args,
                               Locale locale)
                        throws NoSuchMessageException
Specified by:
getMessage in interface MessageSource
Throws:
NoSuchMessageException

getMessage

public final String getMessage(String code,
                               Object[] args,
                               String defaultMessage,
                               Locale locale)
Specified by:
getMessage in interface MessageSource

getParentMessageSource

public MessageSource getParentMessageSource()
Specified by:
getParentMessageSource in interface HierarchicalMessageSource

setParentMessageSource

public void setParentMessageSource(MessageSource parent)
Specified by:
setParentMessageSource in interface HierarchicalMessageSource

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.