org.axonframework.springmessaging.eventbus
Class MessageHandlerAdapter

java.lang.Object
  extended by 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

Constructor Summary
MessageHandlerAdapter(EventListener eventListener)
          Initialize an adapter for the given eventListener.
 
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
 

Constructor Detail

MessageHandlerAdapter

public MessageHandlerAdapter(EventListener eventListener)
Initialize an adapter for the given eventListener.

Parameters:
eventListener - the event listener to adapt
Method Detail

handleMessage

public void handleMessage(org.springframework.messaging.Message<?> message)

Specified by:
handleMessage in interface org.springframework.messaging.MessageHandler


Copyright © 2010-2016. All Rights Reserved.