Apache CXF API

org.apache.cxf.jca.core.resourceadapter
Class AbstractManagedConnectionImpl

java.lang.Object
  extended by 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
protected  Set<javax.resource.spi.ConnectionEventListener> connectionEventListeners
           
protected  javax.resource.spi.ConnectionRequestInfo crinfo
           
protected  PrintWriter printWriter
           
protected  Subject subject
           
 
Constructor Summary
AbstractManagedConnectionImpl(AbstractManagedConnectionFactoryImpl managedFactory, javax.resource.spi.ConnectionRequestInfo crInfo, Subject sj)
           
 
Method Summary
 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()
           
 
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
 

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:
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 API

Apache CXF