public interface StateManageableMessageContext extends MessageContext
Modifier and Type | Method and Description |
---|---|
java.io.Serializable |
createMessagesMemento()
Create a serializable memento, or token representing a snapshot of the internal state of this message context.
|
void |
restoreMessages(java.io.Serializable messagesMemento)
Set the state of this context from the memento provided.
|
void |
setMessageSource(org.springframework.context.MessageSource messageSource)
Configure the message source used to resolve messages added to this context.
|
addMessage, clearMessages, getAllMessages, getMessagesByCriteria, getMessagesBySource, hasErrorMessages
java.io.Serializable createMessagesMemento()
void restoreMessages(java.io.Serializable messagesMemento)
messagesMemento
- the messages mementovoid setMessageSource(org.springframework.context.MessageSource messageSource)
messageSource
- the message sourceMessageContext.addMessage(MessageResolver)