public class RuntimeExceptionInterceptor extends Object implements MethodInterceptor
| Constructor and Description |
|---|
RuntimeExceptionInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
static RuntimeExceptionInterceptor |
getInstance() |
Object |
intercept(Object obj,
Method method,
Object[] args,
MethodProxy mproxy)
This method is called by the proxy object whenever a method is invoked.
|
public static RuntimeExceptionInterceptor getInstance()
public Object intercept(Object obj, Method method, Object[] args, MethodProxy mproxy) throws Throwable
MethodInterceptorintercept in interface MethodInterceptorobj - the original objectmethod - the method that was invoked in the proxy objectargs - the arguments that were passed to the method call on the proxy
objectmproxy - the method proxy that can be used to call the method on the
original object or on just any other object of the same typeExceptionThrowableCopyright © 2013. All Rights Reserved.