org.apache.directory.ldap.client.api
Class PoolableLdapConnectionFactory

java.lang.Object
  extended by org.apache.directory.ldap.client.api.PoolableLdapConnectionFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory

public class PoolableLdapConnectionFactory
extends java.lang.Object
implements org.apache.commons.pool.PoolableObjectFactory

A factory for creating LdapConnection objects managed by LdapConnectionPool.

Version:
$Rev$, $Date$
Author:
Apache Directory Project

Constructor Summary
PoolableLdapConnectionFactory(LdapConnectionConfig config)
          Creates a new instance of PoolableLdapConnectionFactory for the server running on localhost at the port 10389
 
Method Summary
 void activateObject(java.lang.Object obj)
          
 void destroyObject(java.lang.Object obj)
          
 java.lang.Object makeObject()
          
 void passivateObject(java.lang.Object obj)
          
 boolean validateObject(java.lang.Object obj)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolableLdapConnectionFactory

public PoolableLdapConnectionFactory(LdapConnectionConfig config)
Creates a new instance of PoolableLdapConnectionFactory for the server running on localhost at the port 10389

Parameters:
config - the configuration for creating LdapConnections
Method Detail

activateObject

public void activateObject(java.lang.Object obj)
                    throws java.lang.Exception

Specified by:
activateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

destroyObject

public void destroyObject(java.lang.Object obj)
                   throws java.lang.Exception

Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

makeObject

public java.lang.Object makeObject()
                            throws java.lang.Exception

Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

passivateObject

public void passivateObject(java.lang.Object obj)
                     throws java.lang.Exception

Specified by:
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory
Throws:
java.lang.Exception

validateObject

public boolean validateObject(java.lang.Object obj)

Specified by:
validateObject in interface org.apache.commons.pool.PoolableObjectFactory


Copyright © 2009-2011 Apache Software Foundation. All Rights Reserved.