[Java] Interface r1.rpc.RPCCallInterceptor

[Java] Interface r1.rpc.RPCCallInterceptor

Server API

r1.rpc.aop
Interface RPCCallInterceptor


public interface RPCCallInterceptor

This interface must be implemented by the interceptor classes that are specified in the RPCInterceptor annotation for façade classes. The methods here are invoked for the corresponding annotation values.

See Also:
RPCInterceptor

Method Summary
 void exceptionHandler(java.lang.reflect.Method method, java.lang.Throwable t)
          Executed if the façade method invocation throws an exception.
 void postCallHandler(java.lang.reflect.Method method, java.lang.Object returnValue)
          Executed after the façade method is called successfully.
 void preCallHandler(java.lang.reflect.Method method, java.lang.Object[] params)
          Executed before the façade method is called.
 

Method Detail

preCallHandler

void preCallHandler(java.lang.reflect.Method method,
                    java.lang.Object[] params)
Executed before the façade method is called.


postCallHandler

void postCallHandler(java.lang.reflect.Method method,
                     java.lang.Object returnValue)
Executed after the façade method is called successfully.


exceptionHandler

void exceptionHandler(java.lang.reflect.Method method,
                      java.lang.Throwable t)
Executed if the façade method invocation throws an exception.