org.springframework.jee.transaction
Class AbstractApplicationExceptionManager
java.lang.Object
org.springframework.jee.transaction.AbstractApplicationExceptionManager
- All Implemented Interfaces:
- ApplicationExceptionManager
- Direct Known Subclasses:
- DefaultApplicationExceptionManager
public abstract class AbstractApplicationExceptionManager
- extends Object
- implements ApplicationExceptionManager
Abstract implementation containing the ejb specification shortcut rules:
- if the throwable is Error or RemoteException then it is SystemException
- if the throwable is CreateException/FinderException/RemoveException then it is an ApplicationException
.
This class is meant only for internal usage and should be subclassed to add the rest of the
cases and advanced functionality like exception caching.
- Author:
- Costin Leau
Field Summary |
protected Log |
log
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected final Log log
AbstractApplicationExceptionManager
public AbstractApplicationExceptionManager()
causesRollback
public boolean causesRollback(Throwable throwable)
- Description copied from interface:
ApplicationExceptionManager
- Returns true if the given throwable cause rollback.
- Specified by:
causesRollback
in interface ApplicationExceptionManager
- Returns:
shouldCauseRollback
protected abstract boolean shouldCauseRollback(Exception exception)
- Subclasses should extend this for more complex functionality.
- Parameters:
exception
-
- Returns:
Copyright © 2006-2008 SpringSource (formerly Interface21). All Rights Reserved.