org.apache.geronimo.connector.outbound
Class GenericConnectionManager

java.lang.Object
  extended byorg.apache.geronimo.connector.outbound.AbstractConnectionManager
      extended byorg.apache.geronimo.connector.outbound.GenericConnectionManager
All Implemented Interfaces:
javax.resource.spi.ConnectionManager, ConnectionManagerFactory, org.apache.geronimo.gbean.GBeanLifecycle, javax.resource.spi.LazyAssociatableConnectionManager, Serializable

public class GenericConnectionManager
extends AbstractConnectionManager

GenericConnectionManager sets up a connection manager stack according to the policies described in the attributes.

Version:
$Revision: 1.8 $ $Date: 2004/07/12 06:07:51 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.geronimo.connector.outbound.ConnectionManagerFactory
ConnectionManagerFactory.ReturnableXAResource
 
Field Summary
protected  ConnectionTracker connectionTracker
           
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
protected  org.apache.geronimo.security.bridge.RealmBridge realmBridge
           
 
Constructor Summary
GenericConnectionManager()
           
GenericConnectionManager(TransactionSupport transactionSupport, PoolingSupport pooling, String objectName, org.apache.geronimo.security.bridge.RealmBridge realmBridge, ConnectionTracker connectionTracker)
           
 
Method Summary
 ConnectionTracker getConnectionTracker()
           
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 PoolingSupport getPooling()
           
 org.apache.geronimo.security.bridge.RealmBridge getRealmBridge()
           
 TransactionSupport getTransactionSupport()
           
 void setConnectionTracker(ConnectionTracker connectionTracker)
           
 void setPooling(PoolingSupport pooling)
           
 void setRealmBridge(org.apache.geronimo.security.bridge.RealmBridge realmBridge)
           
 void setTransactionSupport(TransactionSupport transactionSupport)
           
protected  ConnectionInterceptor[] setUpConnectionManager()
          Order of constructed interceptors:

ConnectionTrackingInterceptor (connectionTracker != null) ConnectionHandleInterceptor TransactionCachingInterceptor (useTransactions & useTransactionCaching) TransactionEnlistingInterceptor (useTransactions) SubjectInterceptor (realmBridge != null) SinglePoolConnectionInterceptor or MultiPoolConnectionInterceptor LocalXAResourceInsertionInterceptor or XAResourceInsertionInterceptor (useTransactions (&localTransactions)) MCFConnectionInterceptor

 
Methods inherited from class org.apache.geronimo.connector.outbound.AbstractConnectionManager
allocateConnection, associateConnection, createConnectionFactory, doFail, doStart, doStop, getRecoveryXAResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

realmBridge

protected org.apache.geronimo.security.bridge.RealmBridge realmBridge

connectionTracker

protected ConnectionTracker connectionTracker

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

GenericConnectionManager

public GenericConnectionManager()

GenericConnectionManager

public GenericConnectionManager(TransactionSupport transactionSupport,
                                PoolingSupport pooling,
                                String objectName,
                                org.apache.geronimo.security.bridge.RealmBridge realmBridge,
                                ConnectionTracker connectionTracker)
Method Detail

setUpConnectionManager

protected ConnectionInterceptor[] setUpConnectionManager()
                                                  throws IllegalStateException
Order of constructed interceptors:

ConnectionTrackingInterceptor (connectionTracker != null) ConnectionHandleInterceptor TransactionCachingInterceptor (useTransactions & useTransactionCaching) TransactionEnlistingInterceptor (useTransactions) SubjectInterceptor (realmBridge != null) SinglePoolConnectionInterceptor or MultiPoolConnectionInterceptor LocalXAResourceInsertionInterceptor or XAResourceInsertionInterceptor (useTransactions (&localTransactions)) MCFConnectionInterceptor

Specified by:
setUpConnectionManager in class AbstractConnectionManager
Throws:
IllegalStateException

getTransactionSupport

public TransactionSupport getTransactionSupport()

setTransactionSupport

public void setTransactionSupport(TransactionSupport transactionSupport)

getPooling

public PoolingSupport getPooling()

setPooling

public void setPooling(PoolingSupport pooling)

getRealmBridge

public org.apache.geronimo.security.bridge.RealmBridge getRealmBridge()

setRealmBridge

public void setRealmBridge(org.apache.geronimo.security.bridge.RealmBridge realmBridge)

getConnectionTracker

public ConnectionTracker getConnectionTracker()

setConnectionTracker

public void setConnectionTracker(ConnectionTracker connectionTracker)

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.