public class SimpleFiller extends Object implements MessageFiller
Constructor and Description |
---|
SimpleFiller(Map<String,Object> values)
Initialize the filler with several pairs of property/value to set.
|
SimpleFiller(String key,
Object value)
Initialize the filler with a single property with the value to set.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(Message message)
Add extra information on the message.
|
Map<String,Object> |
getValues() |
String |
toString() |
public SimpleFiller(String key, Object value)
key
- the name of the property to set on the messagevalue
- the value to setpublic void fill(Message message) throws FillMessageException
MessageFiller
fill
in interface MessageFiller
message
- The message that to fillFillMessageException
- when the message couldn't be filledCopyright © 2017. All rights reserved.