public class PoolableLdapConnectionFactory extends Object implements org.apache.commons.pool.PoolableObjectFactory<LdapConnection>
| Constructor and Description |
|---|
PoolableLdapConnectionFactory(LdapConnectionConfig config)
Creates a new instance of PoolableLdapConnectionFactory for the
server running on localhost at the port 10389
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(LdapConnection connection) |
void |
destroyObject(LdapConnection connection) |
LdapConnection |
makeObject() |
void |
passivateObject(LdapConnection connection) |
boolean |
validateObject(LdapConnection connection) |
public PoolableLdapConnectionFactory(LdapConnectionConfig config)
config - the configuration for creating LdapConnectionspublic void activateObject(LdapConnection connection) throws Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exceptionpublic void destroyObject(LdapConnection connection) throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exceptionpublic LdapConnection makeObject() throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exceptionpublic void passivateObject(LdapConnection connection) throws Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exceptionpublic boolean validateObject(LdapConnection connection)
validateObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.