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
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<javax.resource.spi.ConnectionEventListener>connectionEventListenersprotected javax.resource.spi.ConnectionRequestInfocrinfoprotected PrintWriterprintWriterprotected Subjectsubject
-
Constructor Summary
Constructors Constructor Description AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject sj)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)abstract voidassociateConnection(Object arg0)voidcleanup()voidclose(Object closingHandle)voiddestroy()voiderror(Exception ex)abstract ObjectgetConnection(Subject aSubject, javax.resource.spi.ConnectionRequestInfo aCrInfo)protected javax.resource.spi.ConnectionRequestInfogetConnectionRequestInfo()PrintWritergetLogWriter()javax.resource.spi.ManagedConnectionMetaDatagetMetaData()SubjectgetSubject()abstract booleanisBound()voidremoveConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)protected voidsendEvent(javax.resource.spi.ConnectionEvent coEvent)protected voidsendEventToListener(javax.resource.spi.ConnectionEvent coEvent, javax.resource.spi.ConnectionEventListener listener)protected voidsetConnectionRequestInfo(javax.resource.spi.ConnectionRequestInfo info)voidsetLogWriter(PrintWriter aPrintWriter)voidsetSubject(Subject sj)protected AbstractManagedConnectionFactoryImpltheManagedConnectionFactory()StringtoString()
-
-
-
Field Detail
-
printWriter
protected PrintWriter printWriter
-
crinfo
protected javax.resource.spi.ConnectionRequestInfo crinfo
-
subject
protected Subject subject
-
connectionEventListeners
protected Set<javax.resource.spi.ConnectionEventListener> connectionEventListeners
-
-
Constructor Detail
-
AbstractManagedConnectionImpl
public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject sj) throws javax.resource.ResourceException
- Throws:
javax.resource.ResourceException
-
-
Method Detail
-
addConnectionEventListener
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
- Specified by:
addConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection
-
removeConnectionEventListener
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
- Specified by:
removeConnectionEventListenerin interfacejavax.resource.spi.ManagedConnection
-
associateConnection
public abstract void associateConnection(Object arg0) throws javax.resource.ResourceException
- Specified by:
associateConnectionin interfacejavax.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:
getConnectionin interfacejavax.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:
cleanupin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
destroy
public void destroy() throws javax.resource.ResourceException- Specified by:
destroyin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getLogWriter
public PrintWriter getLogWriter() throws javax.resource.ResourceException
- Specified by:
getLogWriterin interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
getMetaData
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException- Specified by:
getMetaDatain interfacejavax.resource.spi.ManagedConnection- Throws:
javax.resource.ResourceException
-
setLogWriter
public void setLogWriter(PrintWriter aPrintWriter) throws javax.resource.ResourceException
- Specified by:
setLogWriterin interfacejavax.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()
-
error
public void error(Exception ex)
-
-