org.axonframework.springmessaging.eventbus
Class MessageHandlerAdapter
java.lang.Object
org.axonframework.springmessaging.eventbus.MessageHandlerAdapter
- All Implemented Interfaces:
- org.springframework.messaging.MessageHandler
public class MessageHandlerAdapter
- extends Object
- implements org.springframework.messaging.MessageHandler
Adapter that allows an EventListener to be registered as a Spring Messaging MessageHandler
.
- Since:
- 2.3.1
- Author:
- Allard Buijze
Method Summary |
void |
handleMessage(org.springframework.messaging.Message<?> message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageHandlerAdapter
public MessageHandlerAdapter(EventListener eventListener)
- Initialize an adapter for the given
eventListener
.
- Parameters:
eventListener
- the event listener to adapt
handleMessage
public void handleMessage(org.springframework.messaging.Message<?> message)
-
- Specified by:
handleMessage
in interface org.springframework.messaging.MessageHandler
Copyright © 2010-2016. All Rights Reserved.