org.springframework.jee.transaction
Class DefaultApplicationExceptionManager

java.lang.Object
  extended by org.springframework.jee.transaction.AbstractApplicationExceptionManager
      extended by org.springframework.jee.transaction.DefaultApplicationExceptionManager
All Implemented Interfaces:
ApplicationExceptionManager

public class DefaultApplicationExceptionManager
extends AbstractApplicationExceptionManager

Default implementation for detecting application exceptions.

Author:
Costin Leau

Field Summary
 
Fields inherited from class org.springframework.jee.transaction.AbstractApplicationExceptionManager
log
 
Constructor Summary
DefaultApplicationExceptionManager()
           
 
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 org.springframework.jee.transaction.AbstractApplicationExceptionManager
causesRollback
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultApplicationExceptionManager

public DefaultApplicationExceptionManager()
Method Detail

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.