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 IMessageDispatcherGet the handler invocation that will be used to deliver the message to each listener.Methods inherited from class AbstractSubscriptionContextAware
getContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IMessageDispatcher
dispatchMethods inherited from interface ISubscriptionContextAware
getContext
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingMessageDispatcher
-
-
Method Details
-
getDelegate
-
getInvocation
Description copied from interface:IMessageDispatcherGet the handler invocation that will be used to deliver the message to each listener.- Specified by:
getInvocationin interfaceIMessageDispatcher- Returns:
- the handler invocation that will be used to deliver the message to each listener
-