org.springframework.ldap.core.support
Class LdapContextSource

java.lang.Object
  extended by org.springframework.ldap.core.support.AbstractContextSource
      extended by org.springframework.ldap.core.support.LdapContextSource
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, ContextSource, BaseLdapPathContextSource, BaseLdapPathSource

public class LdapContextSource
extends AbstractContextSource

ContextSource implementation which creates an InitialLdapContext instance. For configuration information, see AbstractContextSource.

Author:
Mattias Arthursson, Adam Skogman, Ulrik Sandberg
See Also:
AbstractContextSource

Field Summary
 
Fields inherited from class org.springframework.ldap.core.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userDn
 
Constructor Summary
LdapContextSource()
           
 
Method Summary
protected  javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable environment)
          Implement in subclass to create a DirContext of the desired type (e.g.
 
Methods inherited from class org.springframework.ldap.core.support.AbstractContextSource
afterPropertiesSet, assembleProviderUrlString, createContext, getAnonymousEnv, getAuthenticatedEnv, getAuthenticationSource, getBase, getBaseLdapPath, getBaseLdapPathAsString, getContextFactory, getDirObjectFactory, getReadOnlyContext, getReadWriteContext, getUrls, isAnonymousReadOnly, isPooled, setAnonymousReadOnly, setAuthenticationSource, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setPassword, setPooled, setupAuthenticatedEnvironment, setUrl, setUrls, setUserDn, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapContextSource

public LdapContextSource()
Method Detail

getDirContextInstance

protected javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable environment)
                                                           throws javax.naming.NamingException
Description copied from class: AbstractContextSource
Implement in subclass to create a DirContext of the desired type (e.g. InitialDirContext or InitialLdapContext).

Specified by:
getDirContextInstance in class AbstractContextSource
Parameters:
environment - the environment to use when creating the instance.
Returns:
a new DirContext instance.
Throws:
javax.naming.NamingException - if one is encountered when creating the instance.


Copyright (c) 2005-2007. All Rights Reserved.