de.schwarzrot.data.access
Class DelegatingResourceBundleMessageSource
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegatingResourceBundleMessageSource
public DelegatingResourceBundleMessageSource()
DelegatingResourceBundleMessageSource
public DelegatingResourceBundleMessageSource(MessageSource defaultMessageSource)
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
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.