This commit is contained in:
Arjen Poutsma
2008-09-14 10:03:01 +00:00
parent c1541caf69
commit 3aad79d4a0

View File

@@ -77,10 +77,8 @@ public abstract class AbstractEndpointExceptionResolver implements EndpointExcep
* @see #resolveExceptionInternal(MessageContext,Object,Exception)
*/
public final boolean resolveException(MessageContext messageContext, Object endpoint, Exception ex) {
if (endpoint instanceof MethodEndpoint) {
endpoint = ((MethodEndpoint) endpoint).getBean();
}
if (mappedEndpoints != null && !mappedEndpoints.contains(endpoint)) {
Object mappedEndpoint = endpoint instanceof MethodEndpoint ? ((MethodEndpoint) endpoint).getBean() : endpoint;
if (mappedEndpoints != null && !mappedEndpoints.contains(mappedEndpoint)) {
return false;
}
return resolveExceptionInternal(messageContext, endpoint, ex);