Class TransactionAwareDirContextInvocationHandler
- java.lang.Object
-
- org.springframework.ldap.transaction.compensating.manager.TransactionAwareDirContextInvocationHandler
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
public class TransactionAwareDirContextInvocationHandler extends java.lang.Object implements java.lang.reflect.InvocationHandlerProxy implementation for DirContext, making sure that the instance is not closed during a transaction, and that all modifying operations are recorded, storing compensating rollback operations for them.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description TransactionAwareDirContextInvocationHandler(javax.naming.directory.DirContext target, ContextSource contextSource)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
-
-
-
Constructor Detail
-
TransactionAwareDirContextInvocationHandler
public TransactionAwareDirContextInvocationHandler(javax.naming.directory.DirContext target, ContextSource contextSource)Constructor.- Parameters:
target- The target DirContext.contextSource- The transactional ContextSource, needed to get hold of the current transaction'sDirContextHolder.
-
-