Class ManagedConnectionImpl

All Implemented Interfaces:
javax.resource.spi.ManagedConnection, Connection, CXFManagedConnection

public class ManagedConnectionImpl extends AbstractManagedConnectionImpl implements CXFManagedConnection, Connection
  • 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

      public void associateConnection(Object connection) throws javax.resource.ResourceException
      Specified by:
      associateConnection in interface javax.resource.spi.ManagedConnection
      Specified by:
      associateConnection in class AbstractManagedConnectionImpl
      Throws:
      javax.resource.ResourceException
    • getManagedConnectionFactory

      public CXFManagedConnectionFactory getManagedConnectionFactory()
      Specified by:
      getManagedConnectionFactory in interface CXFManagedConnection
    • getCXFService

      public Object getCXFService()
    • getConnection

      public Object getConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo crInfo) throws javax.resource.ResourceException
      Specified by:
      getConnection in interface javax.resource.spi.ManagedConnection
      Specified by:
      getConnection in class AbstractManagedConnectionImpl
      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:
      getMetaData in interface javax.resource.spi.ManagedConnection
      Overrides:
      getMetaData in class AbstractManagedConnectionImpl
      Throws:
      javax.resource.ResourceException
    • isBound

      public boolean isBound()
      Specified by:
      isBound in class AbstractManagedConnectionImpl
    • close

      public void close() throws javax.resource.ResourceException
      Description copied from interface: Connection
      close the connection handle. A caller should not use a closed connection.
      Specified by:
      close in interface Connection
      Throws:
      javax.resource.ResourceException - if an error occurs during close.
    • close

      public void close(Object closingHandle) throws javax.resource.ResourceException
      Specified by:
      close in interface CXFManagedConnection
      Overrides:
      close in class AbstractManagedConnectionImpl
      Throws:
      javax.resource.ResourceException
    • destroy

      public void destroy() throws javax.resource.ResourceException
      Specified by:
      destroy in interface javax.resource.spi.ManagedConnection
      Overrides:
      destroy in class AbstractManagedConnectionImpl
      Throws:
      javax.resource.ResourceException
    • getCXFTransaction

      public CXFTransaction getCXFTransaction()
      Specified by:
      getCXFTransaction in interface CXFManagedConnection
    • getXAResource

      public XAResource getXAResource() throws javax.resource.ResourceException
      Specified by:
      getXAResource in interface javax.resource.spi.ManagedConnection
      Throws:
      javax.resource.ResourceException
    • getLocalTransaction

      public javax.resource.spi.LocalTransaction getLocalTransaction() throws javax.resource.ResourceException
      Specified by:
      getLocalTransaction in interface javax.resource.spi.ManagedConnection
      Throws:
      javax.resource.ResourceException