|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ldap.transaction.compensating.manager.TransactionAwareContextSourceProxy
public class TransactionAwareContextSourceProxy
A proxy for ContextSource to make sure that the returned DirContext objects
are aware of the surrounding transactions. This makes sure that the
DirContext is not closed during the transaction and that all modifying
operations are recorded, keeping track of the corresponding rollback
operations. All returned DirContext instances will be of the type
TransactionAwareDirContextInvocationHandler
.
Constructor Summary | |
---|---|
TransactionAwareContextSourceProxy(ContextSource target)
Constructor. |
Method Summary | |
---|---|
javax.naming.directory.DirContext |
getReadOnlyContext()
Gets a read-only DirContext. |
javax.naming.directory.DirContext |
getReadWriteContext()
Gets a read-write DirContext. |
ContextSource |
getTarget()
Get the target ContextSource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransactionAwareContextSourceProxy(ContextSource target)
target
- the target ContextSource.Method Detail |
---|
public ContextSource getTarget()
public javax.naming.directory.DirContext getReadOnlyContext() throws NamingException
ContextSource
getReadOnlyContext
in interface ContextSource
NamingException
- if some error occurs creating an DirContext.public javax.naming.directory.DirContext getReadWriteContext() throws NamingException
ContextSource
getReadWriteContext
in interface ContextSource
NamingException
- if some error occurs creating an DirContext.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |