org.apache.cxf.jca.core.resourceadapter
Class AbstractManagedConnectionImpl
java.lang.Object
org.apache.cxf.jca.core.resourceadapter.AbstractManagedConnectionImpl
- All Implemented Interfaces:
- javax.resource.spi.ManagedConnection
- Direct Known Subclasses:
- ManagedConnectionImpl
public abstract class AbstractManagedConnectionImpl
- extends Object
- implements javax.resource.spi.ManagedConnection
Methods inherited from interface javax.resource.spi.ManagedConnection |
getLocalTransaction, getXAResource |
printWriter
protected PrintWriter printWriter
crinfo
protected javax.resource.spi.ConnectionRequestInfo crinfo
subject
protected Subject subject
connectionEventListeners
protected Set<javax.resource.spi.ConnectionEventListener> connectionEventListeners
AbstractManagedConnectionImpl
public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory,
javax.resource.spi.ConnectionRequestInfo crInfo,
Subject sj)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
- Specified by:
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
- Specified by:
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
associateConnection
public abstract void associateConnection(Object arg0)
throws javax.resource.ResourceException
- Specified by:
associateConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getConnection
public abstract Object getConnection(Subject aSubject,
javax.resource.spi.ConnectionRequestInfo aCrInfo)
throws javax.resource.ResourceException
- Specified by:
getConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
isBound
public abstract boolean isBound()
close
public void close(Object closingHandle)
throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
cleanup
public void cleanup()
throws javax.resource.ResourceException
- Specified by:
cleanup
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
destroy
public void destroy()
throws javax.resource.ResourceException
- Specified by:
destroy
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
- Specified by:
getLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData()
throws javax.resource.ResourceException
- Specified by:
getMetaData
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
setLogWriter
public void setLogWriter(PrintWriter aPrintWriter)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getSubject
public Subject getSubject()
setSubject
public void setSubject(Subject sj)
getConnectionRequestInfo
protected javax.resource.spi.ConnectionRequestInfo getConnectionRequestInfo()
setConnectionRequestInfo
protected void setConnectionRequestInfo(javax.resource.spi.ConnectionRequestInfo info)
sendEvent
protected void sendEvent(javax.resource.spi.ConnectionEvent coEvent)
sendEventToListener
protected void sendEventToListener(javax.resource.spi.ConnectionEvent coEvent,
javax.resource.spi.ConnectionEventListener listener)
theManagedConnectionFactory
protected AbstractManagedConnectionFactoryImpl theManagedConnectionFactory()
toString
public String toString()
- Overrides:
toString
in class Object
error
public void error(Exception ex)
Apache CXF