Package org.apache.cxf.jca.cxf
Class ManagedConnectionImpl
java.lang.Object
org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionImpl
org.apache.cxf.jca.cxf.ManagedConnectionImpl
- All Implemented Interfaces:
javax.resource.spi.ManagedConnection,Connection,CXFManagedConnection
public class ManagedConnectionImpl
extends AbstractManagedConnectionImpl
implements CXFManagedConnection, Connection
-
Field Summary
Fields inherited from class org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionImpl
connectionEventListeners, crinfo, printWriter, subject -
Constructor Summary
ConstructorsConstructorDescriptionManagedConnectionImpl(ManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject subject) -
Method Summary
Modifier and TypeMethodDescriptionvoidassociateConnection(Object connection) voidclose()close the connection handle.voidvoiddestroy()getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo crInfo) getCXFConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo crInfo) javax.resource.spi.LocalTransactionjavax.resource.spi.ManagedConnectionMetaDatabooleanisBound()Methods inherited from class org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionImpl
addConnectionEventListener, cleanup, error, getConnectionRequestInfo, getLogWriter, getSubject, removeConnectionEventListener, sendEvent, sendEventToListener, setConnectionRequestInfo, setLogWriter, setSubject, theManagedConnectionFactory, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.resource.spi.ManagedConnection
addConnectionEventListener, cleanup, getLogWriter, removeConnectionEventListener, setLogWriter
-
Constructor Details
-
ManagedConnectionImpl
public ManagedConnectionImpl(ManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject subject) throws javax.resource.ResourceException - Throws:
javax.resource.ResourceException
-
-
Method Details
-
associateConnection
- Specified by:
associateConnectionin interfacejavax.resource.spi.ManagedConnection- Specified by:
associateConnectionin classAbstractManagedConnectionImpl- Throws:
javax.resource.ResourceException
-
getManagedConnectionFactory
- Specified by:
getManagedConnectionFactoryin interfaceCXFManagedConnection
-
getCXFService
-
getConnection
public Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo crInfo) throws javax.resource.ResourceException - Specified by:
getConnectionin interfacejavax.resource.spi.ManagedConnection- Specified by:
getConnectionin classAbstractManagedConnectionImpl- Throws:
javax.resource.ResourceException
-
getCXFConnection
public Object getCXFConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo crInfo) throws javax.resource.ResourceException - Throws:
javax.resource.ResourceException
-
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
getMetaDatain interfacejavax.resource.spi.ManagedConnection- Overrides:
getMetaDatain classAbstractManagedConnectionImpl- Throws:
javax.resource.ResourceException
-
isBound
public boolean isBound()- Specified by:
isBoundin classAbstractManagedConnectionImpl
-
close
public void close() throws javax.resource.ResourceExceptionDescription copied from interface:Connectionclose the connection handle. A caller should not use a closed connection.- Specified by:
closein interfaceConnection- Throws:
javax.resource.ResourceException- if an error occurs during close.
-
close
- Specified by:
closein interfaceCXFManagedConnection- Overrides:
closein classAbstractManagedConnectionImpl- Throws:
javax.resource.ResourceException
-
destroy
public void destroy() throws javax.resource.ResourceException- Specified by:
destroyin interfacejavax.resource.spi.ManagedConnection- Overrides:
destroyin classAbstractManagedConnectionImpl- Throws:
javax.resource.ResourceException
-
getCXFTransaction
- Specified by:
getCXFTransactionin interfaceCXFManagedConnection
-
getXAResource
- Specified by:
getXAResourcein interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getLocalTransaction
public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException- Specified by:
getLocalTransactionin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-