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
Method Summary |
void |
addApplicationException(java.util.Map<java.lang.Class<? extends java.lang.Exception>,ApplicationExceptionInfo> applicationExceptions)
Add a map of application exceptions that are already parsed (for example
defined within an Ejb container through an xml file). |
void |
addCheckedApplicationExceptions(java.util.List<java.lang.Class<? extends java.lang.Exception>> appExceptions)
Adds a list of application exceptions discovered through introspection
(only checked exceptions are considered). |
protected ApplicationExceptionInfo |
inspectRuntimeException(java.lang.Class<? extends java.lang.RuntimeException> uncheckedException)
Create AppExInfo for unchecked application exceptions. |
protected boolean |
shouldCauseRollback(java.lang.Exception exception)
Subclasses should extend this for more complex functionality. |
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(java.lang.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(java.util.List<java.lang.Class<? extends java.lang.Exception>> appExceptions)
- Adds a list of application exceptions discovered through introspection
(only checked exceptions are considered).
- Parameters:
appExceptions
-
inspectRuntimeException
protected ApplicationExceptionInfo inspectRuntimeException(java.lang.Class<? extends java.lang.RuntimeException> uncheckedException)
- Create AppExInfo for unchecked application exceptions.
- Parameters:
uncheckedException
-
- Returns:
addApplicationException
public void addApplicationException(java.util.Map<java.lang.Class<? extends java.lang.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 Interface21. All Rights Reserved.