ch.elca.el4j.services.exceptionhandler
Class SafetyFacadeInterceptor
java.lang.Object
ch.elca.el4j.services.exceptionhandler.AbstractExceptionHandlerInterceptor
ch.elca.el4j.services.exceptionhandler.SafetyFacadeInterceptor
- All Implemented Interfaces:
- org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor
public class SafetyFacadeInterceptor
- extends AbstractExceptionHandlerInterceptor
This interceptor implements a safety facade. It allows to catch any
exceptions thrown by the proxied bean and to handle them by exception
handlers.
Don't setup this interceptor directly as long as you don't need access to
it. Instead use the SafetyFacadeFactoryBean
.
- Author:
- Andreas Bur (ABU)
- See Also:
SafetyFacadeFactoryBean
- File-location:
- SafetyFacadeInterceptor
- Last check-in date:
- 2009-08-04 15:35:01 +0200 (Di, 04. Aug 2009) by swismer for revision 3883
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SafetyFacadeInterceptor
public SafetyFacadeInterceptor()
- Default constructor. Configures the interceptor to handle only those
exceptions that are not defined in the signature (excluding
unchecked exceptions, which are handled always).
setExceptionConfigurations
public void setExceptionConfigurations(ExceptionConfiguration[] exceptionConfigurations)
- Sets the exception configurations.
- Parameters:
exceptionConfigurations
- The exception configurations to set.
handleException
protected Object handleException(Throwable t,
org.aopalliance.intercept.MethodInvocation invocation)
throws Throwable
- Handles the given exception that was thrown in the given method
invocation's execution.
- Specified by:
handleException
in class AbstractExceptionHandlerInterceptor
- Parameters:
t
- The exception to handle.invocation
- The method invocation that threw the exception.
- Returns:
- Returns an object which is treated as the original invocation's
result.
- Throws:
RetryException
- Signals that the complete invocation has to be rerun.
Throwable
- Any exception thrown by a exception handler.
Copyright © 2005-2011 ELCA. All Rights Reserved.