org.clazzes.remoting
Interface InvocationHandler

All Known Subinterfaces:
ReturnCallbackHandler
All Known Implementing Classes:
BeanInvocationHandler, ReturnCallbackInvocationHandler, SessionContextInvocationHandler

public interface InvocationHandler

An invocation handler, which is registered under a subsystem name at a server. or handles callbacks on a client.

Author:
wglas

Method Summary
 java.lang.Object invoke(InvocationContext ctx, java.lang.Object arg, java.util.Map<java.lang.String,java.lang.Object> metadata)
           
 

Method Detail

invoke

java.lang.Object invoke(InvocationContext ctx,
                        java.lang.Object arg,
                        java.util.Map<java.lang.String,java.lang.Object> metadata)
                        throws java.lang.Throwable
Parameters:
ctx - The context under which the call has been issued.
arg - The argument of the call.
metadata - The metadata accompanying the remote call, which is passed to the invocation handler. Metadata may be used to communicate authorization information such as user/password or a session Id.
Returns:
The result of the operation.
Throws:
java.lang.Throwable - Any exception raised by the call. This exception will be reported back to the invoker as the root cause of an InvocationTargetException.


Copyright © 2010. All Rights Reserved.