@Override public void afterCompletion(MessageContext messageContext, Object endpoint, Exception ex) throws Exception { for (EndpointInterceptor interceptor : interceptors) { if (shouldIntercept(interceptor, messageContext, endpoint)) { interceptor.afterCompletion(messageContext, endpoint, ex); } } }
@Override public boolean handleFault(MessageContext messageContext, Object endpoint) throws Exception { for (EndpointInterceptor interceptor : interceptors) { if (shouldIntercept(interceptor, messageContext, endpoint) && !interceptor.handleFault(messageContext, endpoint)) { return false; } } return true; }