org.iqual.chaplin.composite
Class CompositeProxy
java.lang.Object
org.iqual.chaplin.composite.CompositeProxy
- All Implemented Interfaces:
- MessageReceiver
public class CompositeProxy
- extends Object
- implements MessageReceiver
Upon reception of a message this class decides to which composite in the hierarchy the message will be
delivered first. It uses the scope parameter of the message for the decision.
- See Also:
Message.getScope()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeProxy
public CompositeProxy(Composite composite)
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
Copyright © 2009 iquality.org. All Rights Reserved.