org.springframework.ldap.core
Interface ContextSource

All Known Subinterfaces:
BaseLdapPathContextSource
All Known Implementing Classes:
AbstractContextSource, DirContextSource, LdapContextSource, PoolingContextSource, TransactionAwareContextSourceProxy

public interface ContextSource

Interface used by LdapTemplate to create LDAP contexts.

Author:
Adam Skogman, Mattias Arthursson
See Also:
LdapTemplate

Method Summary
 DirContext getReadOnlyContext()
          Gets a read-only DirContext.
 DirContext getReadWriteContext()
          Gets a read-write DirContext.
 

Method Detail

getReadOnlyContext

DirContext getReadOnlyContext()
                              throws NamingException
Gets a read-only DirContext. The returned DirContext must be possible to perform read-only operations on.

Returns:
A DirContext instance, never null.
Throws:
NamingException - if some error occurs creating an DirContext.

getReadWriteContext

DirContext getReadWriteContext()
                               throws NamingException
Gets a read-write DirContext.

Returns:
A DirContext instance, never null.
Throws:
NamingException - if some error occurs creating an DirContext.


Copyright © 2006-2011 Spring Framework. All Rights Reserved.