/**
/**
* 被拦截的方法
* /
@Interceptors (CAProxyExceptionInterceptor.class)
public void processMessage(NotificationMessage msg) throws Exception {
//todo
}
/**
* 执行拦截的类
* /
publicclass CAProxyExceptionInterceptor {/**
* 拦截方法
*/
@AroundInvoke
public Object handleException(InvocationContext ctx) throws Exception {
Object o = null;
try {
o = ctx.proceed();
} catch (Exception e) {
//todo
}
}
}