Package net.engio.mbassy.dispatch
Class ReflectiveHandlerInvocation
java.lang.Object
net.engio.mbassy.subscription.AbstractSubscriptionContextAware
net.engio.mbassy.dispatch.HandlerInvocation
net.engio.mbassy.dispatch.ReflectiveHandlerInvocation
- All Implemented Interfaces:
IHandlerInvocation
,ISubscriptionContextAware
Uses reflection to invoke a message handler for a given message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(Object listener, Object message, MessagePublication publication) Invoke the message delivery logic of this handlerMethods inherited from class net.engio.mbassy.dispatch.HandlerInvocation
handlePublicationError
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.subscription.ISubscriptionContextAware
getContext
-
Constructor Details
-
ReflectiveHandlerInvocation
-
-
Method Details
-
invoke
Invoke the message delivery logic of this handler- Parameters:
listener
- The listener that will receive the message. This can be a reference to a method object from the java reflection api or any other wrapper that can be used to invoke the handlermessage
- The message to be delivered to the handler. This can be any object compatible with the object type that the handler consumes
-