org.iqual.chaplin.composite
Class CompositeObjectProxy
java.lang.Object
org.iqual.chaplin.composite.CompositeObjectProxy
- All Implemented Interfaces:
- InvocationHandler, MessageReceiver
public class CompositeObjectProxy
- extends Object
- implements InvocationHandler, MessageReceiver
- Since:
- Jul 21, 2009 8:19:01 PM
- Author:
- Zbynek Slajchrt
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createProxy
public static <T> T createProxy(Class type,
CompositeContextHandler composite)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
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.