public class MessageDispatcherImpl extends Object implements MessageDispatcherSetup
MessageDispatcher| Constructor and Description |
|---|
MessageDispatcherImpl() |
| Modifier and Type | Method and Description |
|---|---|
MessageReply |
dispatch(Message message)
Dispatches a message to the message system.
|
MessageReply |
dispatch(String id,
Object... args)
Creates a message and dispatces it to the message system.
|
MessageReply |
dispatch(String id,
Throwable exception,
Object... args)
Creates a message and dispatces it to the message system.
|
void |
setDispatcherContext(DispatcherContext dispatcherContext)
Setter for the message context.
|
void |
setDispatcherContextProvider(DispatcherContextProvider dispatcherContextProvider)
Set the dispatcher context provider, which will be used to get a dispatcher context
if this dispatcher doesn't have one.
|
void |
setMessageInteractor(MessageInteractor messageInteractor)
Set the message interactor used by this dispatcher.
|
void |
setMessageLogDispatcher(MessageLogDispatcher messageLogDispatcher)
Set the message log dispatcher used by this dispatcher.
|
@Autowired(required=false) public void setMessageLogDispatcher(MessageLogDispatcher messageLogDispatcher)
messageLogDispatcher - the message log dispatcher that will be used to dispatch messages to the log@Autowired(required=false) public void setDispatcherContextProvider(DispatcherContextProvider dispatcherContextProvider)
dispatcherContextProvider - the dispatcher context provider to usepublic void setMessageInteractor(MessageInteractor messageInteractor)
messageInteractor - the interactor that will (possibly) display messages to the end user.public void setDispatcherContext(DispatcherContext dispatcherContext)
MessageDispatcherSetupsetDispatcherContext in interface MessageDispatcherSetupdispatcherContext - The message context to be set.public MessageReply dispatch(String id, Object... args)
MessageDispatcherdispatch in interface MessageDispatcherid - The message identifierargs - The arguments needed to create the message text.MessageInteractor does not interact with this message this value might be null.public MessageReply dispatch(Message message)
MessageDispatcherdispatch in interface MessageDispatchermessage - The message to dispatchMessageInteractor does not interact with this message this value might be null.public MessageReply dispatch(String id, Throwable exception, Object... args)
MessageDispatcherdispatch in interface MessageDispatcherid - The message identifierexception - The exception associated with this message.args - The arguments needed to create the message text.MessageInteractor does not interact with this message this value might be null.Copyright © 2006–2017 Esito AS. All rights reserved.