|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TemplateMessage
This MessageBuilder
creates Message
objects by interpolating templates with values supplied as parameters.
For example: Given the following Message
m
Message m = MessageFactory
.info("There are {0} cars, and they are all {1}.", 5, "green").build();
A subsequent call to m.getSummary()
will return:"There are 5 cars, and they are all green."
;
Method Summary | |
---|---|
TemplateMessage |
level(Level level)
Set the severity, level of importance of this message. |
TemplateMessage |
targets(String targets)
Set the targets for this message. |
TemplateMessage |
text(String summary)
Set the template for this message. |
TemplateMessage |
textParams(Object... summaryParams)
Set the parameters for this builder's template. |
Methods inherited from interface org.jboss.seam.international.status.MessageBuilder |
---|
build |
Method Detail |
---|
TemplateMessage text(String summary)
Any expressions of the form "{0}, {1} ... {N}" found in the template will be interpolated; numbers reference the index of any given parameters, and can be used more than once per template.
TemplateMessage textParams(Object... summaryParams)
Parameters may be referenced by index in the template, using expressions of the form "{0}, {1} ... {N}"
TemplateMessage targets(String targets)
TemplateMessage level(Level level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |