Class AbstractManagedConnectionImpl
java.lang.Object
org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionImpl
- All Implemented Interfaces:
jakarta.resource.spi.ManagedConnection
- Direct Known Subclasses:
ManagedConnectionImpl
public abstract class AbstractManagedConnectionImpl
extends Object
implements jakarta.resource.spi.ManagedConnection
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<jakarta.resource.spi.ConnectionEventListener>protected jakarta.resource.spi.ConnectionRequestInfoprotected PrintWriterprotected Subject -
Constructor Summary
ConstructorsConstructorDescriptionAbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, jakarta.resource.spi.ConnectionRequestInfo crInfo, Subject sj) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddConnectionEventListener(jakarta.resource.spi.ConnectionEventListener aListener) abstract voidassociateConnection(Object arg0) voidcleanup()voidvoiddestroy()voidabstract ObjectgetConnection(Subject aSubject, jakarta.resource.spi.ConnectionRequestInfo aCrInfo) protected jakarta.resource.spi.ConnectionRequestInfojakarta.resource.spi.ManagedConnectionMetaDataabstract booleanisBound()voidremoveConnectionEventListener(jakarta.resource.spi.ConnectionEventListener aListener) protected voidsendEvent(jakarta.resource.spi.ConnectionEvent coEvent) protected voidsendEventToListener(jakarta.resource.spi.ConnectionEvent coEvent, jakarta.resource.spi.ConnectionEventListener listener) protected voidsetConnectionRequestInfo(jakarta.resource.spi.ConnectionRequestInfo info) voidsetLogWriter(PrintWriter aPrintWriter) voidsetSubject(Subject sj) protected AbstractManagedConnectionFactoryImpltoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface jakarta.resource.spi.ManagedConnection
getLocalTransaction, getXAResource
-
Field Details
-
printWriter
-
crinfo
protected jakarta.resource.spi.ConnectionRequestInfo crinfo -
subject
-
connectionEventListeners
-
-
Constructor Details
-
AbstractManagedConnectionImpl
public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, jakarta.resource.spi.ConnectionRequestInfo crInfo, Subject sj) throws jakarta.resource.ResourceException - Throws:
jakarta.resource.ResourceException
-
-
Method Details
-
addConnectionEventListener
public void addConnectionEventListener(jakarta.resource.spi.ConnectionEventListener aListener) - Specified by:
addConnectionEventListenerin interfacejakarta.resource.spi.ManagedConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(jakarta.resource.spi.ConnectionEventListener aListener) - Specified by:
removeConnectionEventListenerin interfacejakarta.resource.spi.ManagedConnection
-
associateConnection
- Specified by:
associateConnectionin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
getConnection
public abstract Object getConnection(Subject aSubject, jakarta.resource.spi.ConnectionRequestInfo aCrInfo) throws jakarta.resource.ResourceException - Specified by:
getConnectionin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
isBound
public abstract boolean isBound() -
close
- Throws:
jakarta.resource.ResourceException
-
cleanup
public void cleanup() throws jakarta.resource.ResourceException- Specified by:
cleanupin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
destroy
public void destroy() throws jakarta.resource.ResourceException- Specified by:
destroyin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
getLogWriter
- Specified by:
getLogWriterin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
getMetaData
public jakarta.resource.spi.ManagedConnectionMetaData getMetaData() throws jakarta.resource.ResourceException- Specified by:
getMetaDatain interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
setLogWriter
- Specified by:
setLogWriterin interfacejakarta.resource.spi.ManagedConnection- Throws:
jakarta.resource.ResourceException
-
getSubject
-
setSubject
-
getConnectionRequestInfo
protected jakarta.resource.spi.ConnectionRequestInfo getConnectionRequestInfo() -
setConnectionRequestInfo
protected void setConnectionRequestInfo(jakarta.resource.spi.ConnectionRequestInfo info) -
sendEvent
protected void sendEvent(jakarta.resource.spi.ConnectionEvent coEvent) -
sendEventToListener
protected void sendEventToListener(jakarta.resource.spi.ConnectionEvent coEvent, jakarta.resource.spi.ConnectionEventListener listener) -
theManagedConnectionFactory
-
toString
-
error
-