org.axonframework.integration.eventbus
Class MessageHandlerAdapter
java.lang.Object
org.axonframework.integration.eventbus.MessageHandlerAdapter
- All Implemented Interfaces:
- org.springframework.integration.core.MessageHandler
public class MessageHandlerAdapter
- extends Object
- implements org.springframework.integration.core.MessageHandler
Adapter that allows an EventListener to be registered as a Spring Integration MessageHandler
.
- Since:
- 0.1
- Author:
- Allard Buijze
Method Summary |
void |
handleMessage(org.springframework.integration.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.integration.Message<?> message)
-
- Specified by:
handleMessage
in interface org.springframework.integration.core.MessageHandler
Copyright © 2010-2016. All Rights Reserved.