org.springframework.ldap.transaction.compensating
Class NullOperationRecorder

java.lang.Object
  extended by org.springframework.ldap.transaction.compensating.NullOperationRecorder
All Implemented Interfaces:
CompensatingTransactionOperationRecorder

public class NullOperationRecorder
extends java.lang.Object
implements CompensatingTransactionOperationRecorder

A CompensatingTransactionOperationRecorder performing nothing, returning a NullOperationExecutor regardless of the input. Instances of this class will be created if the CompensatingTransactionOperationManager cannot determine any appropriate CompensatingTransactionOperationRecorder for the current operation.

Since:
1.2
Author:
Mattias Arthursson

Constructor Summary
NullOperationRecorder()
           
 
Method Summary
 CompensatingTransactionOperationExecutor recordOperation(java.lang.Object[] args)
          Record information about the operation performed and return a corresponding CompensatingTransactionOperationExecutor to be used if the operation would need to be rolled back.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullOperationRecorder

public NullOperationRecorder()
Method Detail

recordOperation

public CompensatingTransactionOperationExecutor recordOperation(java.lang.Object[] args)
Description copied from interface: CompensatingTransactionOperationRecorder
Record information about the operation performed and return a corresponding CompensatingTransactionOperationExecutor to be used if the operation would need to be rolled back.

Specified by:
recordOperation in interface CompensatingTransactionOperationRecorder
Parameters:
args - The arguments that have been sent to the operation.
Returns:
A CompensatingTransactionOperationExecutor to be used if the recorded operation should need to be rolled back.


Copyright � 2002-2006. All Rights Reserved.