public class PoolableLdapConnectionFactory extends Object implements org.apache.commons.pool.PoolableObjectFactory
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(Object obj) |
void |
destroyObject(Object obj) |
Object |
makeObject() |
void |
passivateObject(Object obj) |
boolean |
validateObject(Object obj) |
public PoolableLdapConnectionFactory(LdapConnectionConfig config)
config
- the configuration for creating LdapConnectionspublic void activateObject(Object obj) throws Exception
activateObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public void destroyObject(Object obj) throws Exception
destroyObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public Object makeObject() throws Exception
makeObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public void passivateObject(Object obj) throws Exception
passivateObject
in interface org.apache.commons.pool.PoolableObjectFactory
Exception
public boolean validateObject(Object obj)
validateObject
in interface org.apache.commons.pool.PoolableObjectFactory
Copyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.