Package net.engio.mbassy.dispatch
Class DelegatingMessageDispatcher
java.lang.Object
net.engio.mbassy.subscription.AbstractSubscriptionContextAware
net.engio.mbassy.dispatch.DelegatingMessageDispatcher
- All Implemented Interfaces:
IMessageDispatcher
,ISubscriptionContextAware
- Direct Known Subclasses:
EnvelopedMessageDispatcher
,FilteredMessageDispatcher
public abstract class DelegatingMessageDispatcher
extends AbstractSubscriptionContextAware
implements IMessageDispatcher
A delegating dispatcher wraps additional logic around a given delegate. Essentially its
an implementation of the decorator pattern.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IMessageDispatcher
Get the handler invocation that will be used to deliver the message to each listener.Methods inherited from class net.engio.mbassy.subscription.AbstractSubscriptionContextAware
getContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.engio.mbassy.dispatch.IMessageDispatcher
dispatch
Methods inherited from interface net.engio.mbassy.subscription.ISubscriptionContextAware
getContext
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingMessageDispatcher
-
-
Method Details
-
getDelegate
-
getInvocation
Description copied from interface:IMessageDispatcher
Get the handler invocation that will be used to deliver the message to each listener.- Specified by:
getInvocation
in interfaceIMessageDispatcher
- Returns:
- the handler invocation that will be used to deliver the message to each listener
-