org.springframework.ldap.transaction.compensating
Class RebindOperationRecorder
java.lang.Object
org.springframework.ldap.transaction.compensating.RebindOperationRecorder
- All Implemented Interfaces:
- CompensatingTransactionOperationRecorder
public class RebindOperationRecorder
- extends Object
- implements CompensatingTransactionOperationRecorder
A CompensatingTransactionOperationRecorder
keeping track of a rebind
operation. Creates RebindOperationExecutor
objects in
recordOperation(Object[])
.
- Since:
- 1.2
- Author:
- Mattias Hellborg Arthursson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RebindOperationRecorder
public RebindOperationRecorder(LdapOperations ldapOperations,
TempEntryRenamingStrategy renamingStrategy)
- Constructor.
- Parameters:
ldapOperations
- LdapOperations
to use for getting the rollback
information and supply to the RebindOperationExecutor
.renamingStrategy
- TempEntryRenamingStrategy
to use for generating temp
DNs.
recordOperation
public CompensatingTransactionOperationExecutor recordOperation(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.
getRenamingStrategy
public TempEntryRenamingStrategy getRenamingStrategy()