|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.ldap.client.api.PoolableLdapConnectionFactory
public class PoolableLdapConnectionFactory
A factory for creating LdapConnection objects managed by LdapConnectionPool.
| 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(LdapConnection connection)
|
void |
destroyObject(LdapConnection connection)
|
LdapConnection |
makeObject()
|
void |
passivateObject(LdapConnection connection)
|
boolean |
validateObject(LdapConnection connection)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PoolableLdapConnectionFactory(LdapConnectionConfig config)
config - the configuration for creating LdapConnections| Method Detail |
|---|
public void activateObject(LdapConnection connection)
throws Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exception
public void destroyObject(LdapConnection connection)
throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exception
public LdapConnection makeObject()
throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactory<LdapConnection>Exception
public 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>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||