gnu.beanfactory.jdbc
Class ConnectionAdapter

java.lang.Object
  |
  +--gnu.beanfactory.jdbc.ConnectionAdapter
All Implemented Interfaces:
FactoryAdapter

public class ConnectionAdapter
extends java.lang.Object
implements FactoryAdapter

Allows connections to be obtained directly using BeanContext.lookup().


Constructor Summary
ConnectionAdapter()
           
 
Method Summary
 java.lang.Object createBean()
          Emits a bean.
 ConnectionPool getConnectionPool()
           
 void setConnectionPool(ConnectionPool cp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionAdapter

public ConnectionAdapter()
Method Detail

getConnectionPool

public ConnectionPool getConnectionPool()

setConnectionPool

public void setConnectionPool(ConnectionPool cp)

createBean

public java.lang.Object createBean()
                            throws EncapsulatedException
Description copied from interface: FactoryAdapter
Emits a bean.
Specified by:
createBean in interface FactoryAdapter
Following copied from interface: gnu.beanfactory.FactoryAdapter
Returns:
the bean