org.iqual.chaplin.msg
Class DefaultReturnValueReceiver

java.lang.Object
  extended by org.iqual.chaplin.msg.DefaultReturnValueReceiver
All Implemented Interfaces:
MessageReceiver

public class DefaultReturnValueReceiver
extends Object
implements MessageReceiver

This receiver provides default values for method invocations.

Since:
Jun 13, 2009 5:21:41 PM
Author:
Zbynek Slajchrt

Constructor Summary
DefaultReturnValueReceiver()
           
 
Method Summary
static Object getDefaultValue(Message message)
           
 void onMessageReceived(Message message, MessageReplies replies, MessageReceiversChain chain)
          Called when a request is made.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReturnValueReceiver

public DefaultReturnValueReceiver()
Method Detail

onMessageReceived

public void onMessageReceived(Message message,
                              MessageReplies replies,
                              MessageReceiversChain chain)
                       throws Throwable
Description copied from interface: MessageReceiver
Called when a request is made. The receiver must call the chain's process method so that the subsequent receivers could be called. The receiver may manipulate with the arguments passed to that method. For example it may change the message that will be processed by the subsequent receivers in the chain or change the results of the subsequent message processing.

Specified by:
onMessageReceived in interface MessageReceiver
Throws:
Throwable

getDefaultValue

public static Object getDefaultValue(Message message)


Copyright © 2009 iquality.org. All Rights Reserved.