org.axonframework.commandhandling
Class RollbackOnAllExceptionsConfiguration

java.lang.Object
  extended by org.axonframework.commandhandling.RollbackOnAllExceptionsConfiguration
All Implemented Interfaces:
RollbackConfiguration

public class RollbackOnAllExceptionsConfiguration
extends Object
implements RollbackConfiguration

The default implementation of the RollbackConfiguration interface. It will return true on every throwable because that was the behaviour unit now.

Since:
1.1
Author:
Martin Tilma

Constructor Summary
RollbackOnAllExceptionsConfiguration()
           
 
Method Summary
 boolean rollBackOn(Throwable throwable)
          Decides whether the given throwable should trigger a rollback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RollbackOnAllExceptionsConfiguration

public RollbackOnAllExceptionsConfiguration()
Method Detail

rollBackOn

public boolean rollBackOn(Throwable throwable)
Description copied from interface: RollbackConfiguration
Decides whether the given throwable should trigger a rollback.

Specified by:
rollBackOn in interface RollbackConfiguration
Parameters:
throwable - the Throwable to evaluate
Returns:
true if the UnitOfWork should be rolled back, otherwise false


Copyright © 2010-2016. All Rights Reserved.