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
 javax.naming.directory.DirContext getReadOnlyContext()
          Gets a read-only DirContext.
 javax.naming.directory.DirContext getReadWriteContext()
          Gets a read-write DirContext.
 

Method Detail

getReadOnlyContext

javax.naming.directory.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

javax.naming.directory.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 (c) 2005-2007. All Rights Reserved.