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 java.lang.Object
- implements javax.resource.spi.ManagedConnection
Field Summary |
protected java.util.Set<javax.resource.spi.ConnectionEventListener> |
connectionEventListeners
|
protected javax.resource.spi.ConnectionRequestInfo |
crinfo
|
protected java.io.PrintWriter |
printWriter
|
protected javax.security.auth.Subject |
subject
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.resource.spi.ManagedConnection |
getLocalTransaction, getXAResource |
printWriter
protected java.io.PrintWriter printWriter
crinfo
protected javax.resource.spi.ConnectionRequestInfo crinfo
subject
protected javax.security.auth.Subject subject
connectionEventListeners
protected java.util.Set<javax.resource.spi.ConnectionEventListener> connectionEventListeners
AbstractManagedConnectionImpl
public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory,
javax.resource.spi.ConnectionRequestInfo crInfo,
javax.security.auth.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(java.lang.Object arg0)
throws javax.resource.ResourceException
- Specified by:
associateConnection
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getConnection
public abstract java.lang.Object getConnection(javax.security.auth.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(java.lang.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 java.io.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(java.io.PrintWriter aPrintWriter)
throws javax.resource.ResourceException
- Specified by:
setLogWriter
in interface javax.resource.spi.ManagedConnection
- Throws:
javax.resource.ResourceException
getSubject
public javax.security.auth.Subject getSubject()
setSubject
public void setSubject(javax.security.auth.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 java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
error
public void error(java.lang.Exception ex)
Apache CXF