org.codehaus.plexus.redback.common.ldap.connection
Class ConfigurableLdapConnectionFactory

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.codehaus.plexus.redback.common.ldap.connection.ConfigurableLdapConnectionFactory
All Implemented Interfaces:
org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, LdapConnectionFactory

public class ConfigurableLdapConnectionFactory
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements LdapConnectionFactory, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable

Version:
$Id: ConfigurableLdapConnectionFactory.java,v 1.3 2006/02/06 15:15:54 trygvis Exp $
Author:
Trygve Laugstøl

Field Summary
 
Fields inherited from interface org.codehaus.plexus.redback.common.ldap.connection.LdapConnectionFactory
ROLE
 
Constructor Summary
ConfigurableLdapConnectionFactory()
           
 
Method Summary
 void addObjectFactory(java.lang.Class<? extends javax.naming.spi.ObjectFactory> objectFactoryClass)
           
 void addStateFactory(java.lang.Class<? extends javax.naming.spi.StateFactory> stateFactoryClass)
           
 javax.naming.ldap.LdapName getBaseDnLdapName()
           
 LdapConnection getConnection()
           
 LdapConnection getConnection(javax.naming.ldap.Rdn subRdn)
           
 LdapConnection getConnection(java.lang.String bindDn, java.lang.String password)
           
 void initialize()
           
 java.lang.String toString()
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurableLdapConnectionFactory

public ConfigurableLdapConnectionFactory()
Method Detail

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

getConnection

public LdapConnection getConnection()
                             throws LdapException
Specified by:
getConnection in interface LdapConnectionFactory
Throws:
LdapException

getConnection

public LdapConnection getConnection(javax.naming.ldap.Rdn subRdn)
                             throws LdapException
Specified by:
getConnection in interface LdapConnectionFactory
Throws:
LdapException

getConnection

public LdapConnection getConnection(java.lang.String bindDn,
                                    java.lang.String password)
                             throws LdapException
Specified by:
getConnection in interface LdapConnectionFactory
Throws:
LdapException

getBaseDnLdapName

public javax.naming.ldap.LdapName getBaseDnLdapName()
                                             throws LdapException
Specified by:
getBaseDnLdapName in interface LdapConnectionFactory
Throws:
LdapException

addObjectFactory

public void addObjectFactory(java.lang.Class<? extends javax.naming.spi.ObjectFactory> objectFactoryClass)
Specified by:
addObjectFactory in interface LdapConnectionFactory

addStateFactory

public void addStateFactory(java.lang.Class<? extends javax.naming.spi.StateFactory> stateFactoryClass)
Specified by:
addStateFactory in interface LdapConnectionFactory

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2008 Codehaus. All Rights Reserved.