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 Details

    • printWriter

      protected PrintWriter printWriter
    • crinfo

      protected jakarta.resource.spi.ConnectionRequestInfo crinfo
    • subject

      protected Subject subject
    • connectionEventListeners

      protected Set<jakarta.resource.spi.ConnectionEventListener> 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:
      addConnectionEventListener in interface jakarta.resource.spi.ManagedConnection
    • removeConnectionEventListener

      public void removeConnectionEventListener(jakarta.resource.spi.ConnectionEventListener aListener)
      Specified by:
      removeConnectionEventListener in interface jakarta.resource.spi.ManagedConnection
    • associateConnection

      public abstract void associateConnection(Object arg0) throws jakarta.resource.ResourceException
      Specified by:
      associateConnection in interface jakarta.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:
      getConnection in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • isBound

      public abstract boolean isBound()
    • close

      public void close(Object closingHandle) throws jakarta.resource.ResourceException
      Throws:
      jakarta.resource.ResourceException
    • cleanup

      public void cleanup() throws jakarta.resource.ResourceException
      Specified by:
      cleanup in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • destroy

      public void destroy() throws jakarta.resource.ResourceException
      Specified by:
      destroy in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • getLogWriter

      public PrintWriter getLogWriter() throws jakarta.resource.ResourceException
      Specified by:
      getLogWriter in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • getMetaData

      public jakarta.resource.spi.ManagedConnectionMetaData getMetaData() throws jakarta.resource.ResourceException
      Specified by:
      getMetaData in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • setLogWriter

      public void setLogWriter(PrintWriter aPrintWriter) throws jakarta.resource.ResourceException
      Specified by:
      setLogWriter in interface jakarta.resource.spi.ManagedConnection
      Throws:
      jakarta.resource.ResourceException
    • getSubject

      public Subject getSubject()
    • setSubject

      public void setSubject(Subject sj)
    • 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

      protected AbstractManagedConnectionFactoryImpl theManagedConnectionFactory()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • error

      public void error(Exception ex)