net.sf.ldaptemplate.support
Class DirContextSource

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

public class DirContextSource
extends AbstractContextSource

ContextSource implementation which creates InitialDirContext instances, for LDAPv2 compatibility. For configuration information, see AbstractContextSource.

Author:
Mattias Arthursson
See Also:
AbstractContextSource

Field Summary
 
Fields inherited from class net.sf.ldaptemplate.support.AbstractContextSource
password, SUN_LDAP_POOLING_FLAG, userName
 
Constructor Summary
DirContextSource()
           
 
Method Summary
protected  javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable environment)
          Create a new InitialDirContext instance.
 
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

DirContextSource

public DirContextSource()
Method Detail

getDirContextInstance

protected javax.naming.directory.DirContext getDirContextInstance(java.util.Hashtable environment)
                                                           throws javax.naming.NamingException
Create a new InitialDirContext instance.

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


Copyright © 2006 Jayway AB. All Rights Reserved.