|
||||||||||
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.
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 |
detail(String detail)
Set the detail text for this message. |
TemplateMessage |
detailParams(Object... detailParams)
Set the parameters for detail text of this builder's template. |
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)
TemplateMessage detail(String detail)
TemplateMessage textParams(Object... summaryParams)
TemplateMessage detailParams(Object... detailParams)
TemplateMessage targets(String targets)
TemplateMessage level(Level level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |