Class LdapConnectionPooledObjectFactory

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
ddf.ldap.ldaplogin.LdapConnectionPooledObjectFactory
All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<org.forgerock.opendj.ldap.Connection>

public class LdapConnectionPooledObjectFactory extends org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
  • Constructor Summary

    Constructors
    Constructor
    Description
    LdapConnectionPooledObjectFactory(org.forgerock.opendj.ldap.ConnectionFactory ldapConnectionFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.forgerock.opendj.ldap.Connection
     
    void
    destroyObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p)
     
    boolean
    validateObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p)
     
    org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection>
    wrap(org.forgerock.opendj.ldap.Connection connection)
     

    Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory

    activateObject, makeObject, passivateObject

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString, toStringAppendFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • LdapConnectionPooledObjectFactory

      public LdapConnectionPooledObjectFactory(org.forgerock.opendj.ldap.ConnectionFactory ldapConnectionFactory)
  • Method Details

    • create

      public org.forgerock.opendj.ldap.Connection create() throws Exception
      Specified by:
      create in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
      Throws:
      Exception
    • wrap

      public org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> wrap(org.forgerock.opendj.ldap.Connection connection)
      Specified by:
      wrap in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
    • destroyObject

      public void destroyObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p) throws Exception
      Specified by:
      destroyObject in interface org.apache.commons.pool2.PooledObjectFactory<org.forgerock.opendj.ldap.Connection>
      Overrides:
      destroyObject in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>
      Throws:
      Exception
    • validateObject

      public boolean validateObject(org.apache.commons.pool2.PooledObject<org.forgerock.opendj.ldap.Connection> p)
      Specified by:
      validateObject in interface org.apache.commons.pool2.PooledObjectFactory<org.forgerock.opendj.ldap.Connection>
      Overrides:
      validateObject in class org.apache.commons.pool2.BasePooledObjectFactory<org.forgerock.opendj.ldap.Connection>