public class WeldMessageConveyor extends MessageConveyor
Constructor and Description |
---|
WeldMessageConveyor(Locale locale,
String subsystem) |
Modifier and Type | Method and Description |
---|---|
<E extends Enum<?>> |
getMessage(E key,
Object... args)
Given an enum as key, find the corresponding resource bundle and return
the corresponding internationalized.
|
getMessage
public <E extends Enum<?>> String getMessage(E key, Object... args) throws MessageConveyorException
MessageConveyor
The name of the resource bundle is defined via the BaseName
annotation whereas the locale is specified in this MessageConveyor
instance's constructor.
getMessage
in interface IMessageConveyor
getMessage
in class MessageConveyor
E
- an enum typekey
- an enum instance used as message keyargs
- optional argumentsMessageConveyorException
Copyright © 2013 Seam Framework. All Rights Reserved.