org.springframework.jee.transaction
Class AbstractApplicationExceptionManager

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

public abstract class AbstractApplicationExceptionManager
extends java.lang.Object
implements ApplicationExceptionManager

Abstract implementation containing the ejb specification shortcut rules:

. 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  org.apache.commons.logging.Log log
           
 
Constructor Summary
AbstractApplicationExceptionManager()
           
 
Method Summary
 boolean causesRollback(java.lang.Throwable throwable)
          Returns true if the given throwable cause rollback.
protected abstract  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
 

Field Detail

log

protected final org.apache.commons.logging.Log log
Constructor Detail

AbstractApplicationExceptionManager

public AbstractApplicationExceptionManager()
Method Detail

causesRollback

public boolean causesRollback(java.lang.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(java.lang.Exception exception)
Subclasses should extend this for more complex functionality.

Parameters:
exception -
Returns:


Copyright 2006 Interface21. All Rights Reserved.