org.springframework.jee.transaction
Class DefaultApplicationExceptionManager
java.lang.Object
org.springframework.jee.transaction.AbstractApplicationExceptionManager
org.springframework.jee.transaction.DefaultApplicationExceptionManager
- All Implemented Interfaces:
- ApplicationExceptionManager
public class DefaultApplicationExceptionManager
- extends AbstractApplicationExceptionManager
Default implementation for detecting application exceptions.
- Author:
- Costin Leau
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultApplicationExceptionManager
public DefaultApplicationExceptionManager()
shouldCauseRollback
protected boolean shouldCauseRollback(Exception exception)
- Description copied from class:
AbstractApplicationExceptionManager
- Subclasses should extend this for more complex functionality.
- Specified by:
shouldCauseRollback
in class AbstractApplicationExceptionManager
- Returns:
addCheckedApplicationExceptions
public void addCheckedApplicationExceptions(List<Class<? extends Exception>> appExceptions)
- Adds a list of application exceptions discovered through introspection
(only checked exceptions are considered).
- Parameters:
appExceptions
-
inspectRuntimeException
protected ApplicationExceptionInfo inspectRuntimeException(Class<? extends RuntimeException> uncheckedException)
- Create AppExInfo for unchecked application exceptions.
- Parameters:
uncheckedException
-
- Returns:
addApplicationException
public void addApplicationException(Map<Class<? extends Exception>,ApplicationExceptionInfo> applicationExceptions)
- Add a map of application exceptions that are already parsed (for example
defined within an Ejb container through an xml file). The map can contain
both checked and unchecked exceptions.
- Parameters:
applicationExceptions
-
Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.