org.apache.qpid.management.configuration
Class QpidDatasource.QpidConnectionFactory

java.lang.Object
  extended by org.apache.commons.pool.BasePoolableObjectFactory
      extended by org.apache.qpid.management.configuration.QpidDatasource.QpidConnectionFactory
All Implemented Interfaces:
org.apache.commons.pool.PoolableObjectFactory
Enclosing class:
QpidDatasource

 class QpidDatasource.QpidConnectionFactory
extends org.apache.commons.pool.BasePoolableObjectFactory

This is the connection factory, that is, the factory used to manage the lifecycle (create, validate & destroy) of the broker connection(s).


Method Summary
 void destroyObject(Object obj)
          Closes the underlying connection.
 org.apache.qpid.transport.Connection makeObject()
          Creates a new underlying connection.
 boolean validateObject(Object obj)
          Validates the underlying connection.
 
Methods inherited from class org.apache.commons.pool.BasePoolableObjectFactory
activateObject, passivateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeObject

public org.apache.qpid.transport.Connection makeObject()
                                                throws Exception
Creates a new underlying connection.

Specified by:
makeObject in interface org.apache.commons.pool.PoolableObjectFactory
Specified by:
makeObject in class org.apache.commons.pool.BasePoolableObjectFactory
Throws:
Exception

validateObject

public boolean validateObject(Object obj)
Validates the underlying connection.

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

destroyObject

public void destroyObject(Object obj)
                   throws Exception
Closes the underlying connection.

Specified by:
destroyObject in interface org.apache.commons.pool.PoolableObjectFactory
Overrides:
destroyObject in class org.apache.commons.pool.BasePoolableObjectFactory
Throws:
Exception


Licensed to the Apache Software Foundation