org.apache.geronimo.connector.outbound
Class AbstractConnectionManager

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

public abstract class AbstractConnectionManager
extends Object
implements ConnectionManagerFactory, org.apache.geronimo.gbean.GBeanLifecycle, javax.resource.spi.ConnectionManager, javax.resource.spi.LazyAssociatableConnectionManager

Version:
$Revision: 1.6 $ $Date: 2004/06/11 19:22:04 $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.apache.geronimo.connector.outbound.ConnectionManagerFactory
ConnectionManagerFactory.ReturnableXAResource
 
Field Summary
protected static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
AbstractConnectionManager()
           
 
Method Summary
 Object allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
          in: mcf != null, is a deployed mcf out: useable connection object.
 void associateConnection(Object connection, javax.resource.spi.ManagedConnectionFactory managedConnectionFactory, javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
          in: non-null connection object, from non-null mcf.
 Object createConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)
           
 void doFail()
           
 void doStart()
           
 void doStop()
           
 ConnectionManagerFactory.ReturnableXAResource getRecoveryXAResource(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
           
protected abstract  ConnectionInterceptor[] setUpConnectionManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

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

AbstractConnectionManager

public AbstractConnectionManager()
Method Detail

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception

setUpConnectionManager

protected abstract ConnectionInterceptor[] setUpConnectionManager()
                                                           throws IllegalStateException
Throws:
IllegalStateException

doStop

public void doStop()
Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

createConnectionFactory

public Object createConnectionFactory(javax.resource.spi.ManagedConnectionFactory mcf)
                               throws javax.resource.ResourceException
Specified by:
createConnectionFactory in interface ConnectionManagerFactory
Throws:
javax.resource.ResourceException

allocateConnection

public Object allocateConnection(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
                                 javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                          throws javax.resource.ResourceException
in: mcf != null, is a deployed mcf out: useable connection object.

Specified by:
allocateConnection in interface javax.resource.spi.ConnectionManager
Throws:
javax.resource.ResourceException

associateConnection

public void associateConnection(Object connection,
                                javax.resource.spi.ManagedConnectionFactory managedConnectionFactory,
                                javax.resource.spi.ConnectionRequestInfo connectionRequestInfo)
                         throws javax.resource.ResourceException
in: non-null connection object, from non-null mcf. connection object is not associated with a managed connection out: supplied connection object is assiciated with a non-null ManagedConnection from mcf.

Specified by:
associateConnection in interface javax.resource.spi.LazyAssociatableConnectionManager
Throws:
javax.resource.ResourceException

getRecoveryXAResource

public ConnectionManagerFactory.ReturnableXAResource getRecoveryXAResource(javax.resource.spi.ManagedConnectionFactory managedConnectionFactory)
                                                                    throws javax.resource.ResourceException
Specified by:
getRecoveryXAResource in interface ConnectionManagerFactory
Throws:
javax.resource.ResourceException


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