org.iqual.chaplin.msg
Interface MessageReceiver

All Known Subinterfaces:
Composite, ContextHandler, FilterableMessageReceiver
All Known Implementing Classes:
AbstractCompositeHandler, AbstractContextHandler, AggregatorReceiver, BinderCompositeHandler, CompositeContextHandler, CompositeObjectProxy, CompositeProxy, ConstraintReceiver, DefaultReturnValueReceiver, MapContextHandler, MethodMessageReceiver, NamedComponentHandler, SideEffectReceiver, SimpleContextHandler

public interface MessageReceiver

Since:
Jun 4, 2009 10:36:38 PM
Author:
Zbynek Slajchrt

Method Summary
 void onMessageReceived(Message message, MessageReplies replies, MessageReceiversChain chain)
          Called when a request is made.
 

Method Detail

onMessageReceived

void onMessageReceived(Message message,
                       MessageReplies replies,
                       MessageReceiversChain chain)
                       throws Throwable
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.

Parameters:
message -
replies -
chain -
Throws:
Throwable


Copyright © 2009 iquality.org. All Rights Reserved.