com.metaparadigm.jsonrpc
Interface InvocationCallback

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ErrorInvocationCallback

public interface InvocationCallback
extends java.io.Serializable

Interface to be implemented by objects registered for invocation callbacks with the JSONRPCBridge.


Method Summary
 void postInvoke(java.lang.Object context, java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object result)
          Callback after invocation of an RPC method.
 void preInvoke(java.lang.Object context, java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object[] arguments)
          Callback before invocation of an RPC method.
 

Method Detail

postInvoke

void postInvoke(java.lang.Object context,
                java.lang.Object instance,
                java.lang.reflect.Method method,
                java.lang.Object result)
                throws java.lang.Exception
Callback after invocation of an RPC method.

Parameters:
context - The transport context (the HttpServletRequest object in the case of the HTTP transport).
instance - The object instance or null if it is a static method.
method - Method that failed the invocation.
result - The returned result from the method
Throws:
java.lang.Exception

preInvoke

void preInvoke(java.lang.Object context,
               java.lang.Object instance,
               java.lang.reflect.Method method,
               java.lang.Object[] arguments)
               throws java.lang.Exception
Callback before invocation of an RPC method.

Parameters:
context - The transport context (the HttpServletRequest object in the case of the HTTP transport).
instance - The object instance or null if it is a static method.
method - Method that failed the invocation.
arguments - The arguments passed to the method
Throws:
java.lang.Exception


Copyright © 2005 Metaparadigm Pte Ltd.