net.sf.ldaptemplate.support
Class LdapContextSource

java.lang.Object
  extended bynet.sf.ldaptemplate.support.AbstractContextSource
      extended bynet.sf.ldaptemplate.support.LdapContextSource
All Implemented Interfaces:
ContextSource, org.springframework.beans.factory.InitializingBean

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 net.sf.ldaptemplate.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userName
 
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 net.sf.ldaptemplate.support.AbstractContextSource
afterPropertiesSet, assembleProviderUrlString, getAnonymousEnv, getAuthenticatedEnv, getExceptionTranslator, getReadOnlyContext, getReadWriteContext, setAuthenticatedReadOnly, setAuthenticationSource, setBase, setBaseEnvironmentProperties, setCacheEnvironmentProperties, setContextFactory, setDirObjectFactory, setExceptionTranslator, setPassword, setPooled, setupAuthenticatedEnvironment, setUrl, setUrls, 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 © 2006 Jayway AB. All Rights Reserved.