public abstract class AbstractManagedConnectionImpl extends Object implements javax.resource.spi.ManagedConnection
Modifier and Type | Field and Description |
---|---|
protected Set<javax.resource.spi.ConnectionEventListener> |
connectionEventListeners |
protected javax.resource.spi.ConnectionRequestInfo |
crinfo |
protected PrintWriter |
printWriter |
protected Subject |
subject |
Constructor and Description |
---|
AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory,
javax.resource.spi.ConnectionRequestInfo crInfo,
Subject sj) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener) |
abstract void |
associateConnection(Object arg0) |
void |
cleanup() |
void |
close(Object closingHandle) |
void |
destroy() |
void |
error(Exception ex) |
abstract Object |
getConnection(Subject aSubject,
javax.resource.spi.ConnectionRequestInfo aCrInfo) |
protected javax.resource.spi.ConnectionRequestInfo |
getConnectionRequestInfo() |
PrintWriter |
getLogWriter() |
javax.resource.spi.ManagedConnectionMetaData |
getMetaData() |
Subject |
getSubject() |
abstract boolean |
isBound() |
void |
removeConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener) |
protected void |
sendEvent(javax.resource.spi.ConnectionEvent coEvent) |
protected void |
sendEventToListener(javax.resource.spi.ConnectionEvent coEvent,
javax.resource.spi.ConnectionEventListener listener) |
protected void |
setConnectionRequestInfo(javax.resource.spi.ConnectionRequestInfo info) |
void |
setLogWriter(PrintWriter aPrintWriter) |
void |
setSubject(Subject sj) |
protected AbstractManagedConnectionFactoryImpl |
theManagedConnectionFactory() |
String |
toString() |
protected PrintWriter printWriter
protected javax.resource.spi.ConnectionRequestInfo crinfo
protected Subject subject
protected Set<javax.resource.spi.ConnectionEventListener> connectionEventListeners
public AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject sj) throws javax.resource.ResourceException
javax.resource.ResourceException
public void addConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
addConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public void removeConnectionEventListener(javax.resource.spi.ConnectionEventListener aListener)
removeConnectionEventListener
in interface javax.resource.spi.ManagedConnection
public abstract void associateConnection(Object arg0) throws javax.resource.ResourceException
associateConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public abstract Object getConnection(Subject aSubject, javax.resource.spi.ConnectionRequestInfo aCrInfo) throws javax.resource.ResourceException
getConnection
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public abstract boolean isBound()
public void close(Object closingHandle) throws javax.resource.ResourceException
javax.resource.ResourceException
public void cleanup() throws javax.resource.ResourceException
cleanup
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void destroy() throws javax.resource.ResourceException
destroy
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public javax.resource.spi.ManagedConnectionMetaData getMetaData() throws javax.resource.ResourceException
getMetaData
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public void setLogWriter(PrintWriter aPrintWriter) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnection
javax.resource.ResourceException
public Subject getSubject()
public void setSubject(Subject sj)
protected javax.resource.spi.ConnectionRequestInfo getConnectionRequestInfo()
protected void setConnectionRequestInfo(javax.resource.spi.ConnectionRequestInfo info)
protected void sendEvent(javax.resource.spi.ConnectionEvent coEvent)
protected void sendEventToListener(javax.resource.spi.ConnectionEvent coEvent, javax.resource.spi.ConnectionEventListener listener)
protected AbstractManagedConnectionFactoryImpl theManagedConnectionFactory()
public void error(Exception ex)
Apache CXF