org.axonframework.examples.addressbook.web.impl
Class CommandReceiverImpl

java.lang.Object
  extended by org.axonframework.examples.addressbook.web.impl.CommandReceiverImpl
All Implemented Interfaces:
CommandReceiver

@Service(value="commandReceiver")
@RemotingDestination(channels="my-amf")
public class CommandReceiverImpl
extends java.lang.Object
implements CommandReceiver

Implementation of the CommandReceiver interface to be used as an endpoint for flex clients

Author:
Jettro Coenradie

Constructor Summary
CommandReceiverImpl(CommandBus commandBus)
           
 
Method Summary
 java.lang.Object sendCommand(java.lang.Object command)
          Send a new command to the command bus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandReceiverImpl

public CommandReceiverImpl(CommandBus commandBus)
Method Detail

sendCommand

@RemotingInclude
public java.lang.Object sendCommand(java.lang.Object command)
Description copied from interface: CommandReceiver
Send a new command to the command bus. If a return value is available it is passed on.

Specified by:
sendCommand in interface CommandReceiver
Parameters:
command - Object representing the command to be dispatched to the command bus
Returns:
Object as returned by the command bus


Copyright © 2010. All Rights Reserved.