|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.qos.cal10n.MessageConveyor
public class MessageConveyor
The default implementation for IMessageConveyor
based on resource
bundles.
See also getMessage(Enum, Object...)
for details.
Constructor Summary | |
---|---|
MessageConveyor(Locale locale)
The Locale associated with this instance. |
Method Summary | ||
---|---|---|
|
getMessage(E e,
Object... args)
Given an enum e, find the corresponding resource bundle and return the internationalized message defined by the message code 'e'. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageConveyor(Locale locale)
Locale
associated with this instance.
locale
- Method Detail |
---|
public <E extends Enum<?>> String getMessage(E e, Object... args)
The name of the resource bundle is defined via the
ResourceBundleName
annotation whereas the locale was specified in
this MessageConveyor instance's constructor.
getMessage
in interface IMessageConveyor
E
- an enum typee
- an enum instance used as message codeargs
- optional arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |