Class NullOperationRecorder
java.lang.Object
org.springframework.ldap.transaction.compensating.NullOperationRecorder
- All Implemented Interfaces:
CompensatingTransactionOperationRecorder
public class NullOperationRecorder
extends 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrecordOperation
(Object[] args) Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutor
to be used if the operation would need to be rolled back.
-
Constructor Details
-
NullOperationRecorder
public NullOperationRecorder()
-
-
Method Details
-
recordOperation
Description copied from interface:CompensatingTransactionOperationRecorder
Record information about the operation performed and return a correspondingCompensatingTransactionOperationExecutor
to be used if the operation would need to be rolled back.- Specified by:
recordOperation
in interfaceCompensatingTransactionOperationRecorder
- 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.
-