org.jboss.test.jca.fs
Class FSManagedConnection

java.lang.Object
  extended byorg.jboss.test.jca.fs.FSManagedConnection
All Implemented Interfaces:
ManagedConnection (src)

public class FSManagedConnection
extends java.lang.Object
implements ManagedConnection (src)


Constructor Summary
FSManagedConnection(javax.security.auth.Subject subject, FSRequestInfo (src)  fsInfo)
          Creates new FSManagedConnection
 
Method Summary
 void addConnectionEventListener(ConnectionEventListener (src)  connectionEventListener)
          Adds a connection event listener
 void associateConnection(java.lang.Object obj)
          Associates a new application level connection handle with the connection.
 void cleanup()
          Application server calls this to force cleanup of connection.
protected  void close()
           
 void destroy()
          Destroys the connection to the underlying resource.
protected  void fireConnectionEvent(ConnectionEvent (src)  evt)
           
 java.lang.Object getConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src)  info)
          Creates a new connection handle for the underlying connection.
 LocalTransaction (src) getLocalTransaction()
          Returns a LocalTransaction instance.
 java.io.PrintWriter getLogWriter()
          Gets the logwriter for this instance.
 ManagedConnectionMetaData (src) getMetaData()
          Gets metadata inormation for this instances underlying resource manager instance.
 XAResource (src) getXAResource()
          Returns an XAResource instance.
 void removeConnectionEventListener(ConnectionEventListener (src)  connectionEventListener)
          Removes a connection event listener
 void setLogWriter(java.io.PrintWriter out)
          Sets the logwriter for this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FSManagedConnection

public FSManagedConnection(javax.security.auth.Subject subject,
                           FSRequestInfo (src)  fsInfo)
Creates new FSManagedConnection

Method Detail

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener (src)  connectionEventListener)
Description copied from interface: ManagedConnection (src)
Adds a connection event listener

Specified by:
addConnectionEventListener in interface ManagedConnection (src)
Parameters:
connectionEventListener - the listener

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener (src)  connectionEventListener)
Description copied from interface: ManagedConnection (src)
Removes a connection event listener

Specified by:
removeConnectionEventListener in interface ManagedConnection (src)
Parameters:
connectionEventListener - the listener

associateConnection

public void associateConnection(java.lang.Object obj)
                         throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Associates a new application level connection handle with the connection.

Specified by:
associateConnection in interface ManagedConnection (src)
Parameters:
obj - the connection
Throws:
ResourceException (src) - for a generic error

cleanup

public void cleanup()
             throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Application server calls this to force cleanup of connection.

Specified by:
cleanup in interface ManagedConnection (src)
Throws:
ResourceException (src) - for a generic error

destroy

public void destroy()
             throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Destroys the connection to the underlying resource.

Specified by:
destroy in interface ManagedConnection (src)
Throws:
ResourceException (src) - for a generic error

getConnection

public java.lang.Object getConnection(javax.security.auth.Subject subject,
                                      ConnectionRequestInfo (src)  info)
                               throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Creates a new connection handle for the underlying connection.

Specified by:
getConnection in interface ManagedConnection (src)
Parameters:
subject - the subject
info - the connection request info
Throws:
ResourceException (src) - for a generic error

getLocalTransaction

public LocalTransaction (src)  getLocalTransaction()
                                     throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Returns a LocalTransaction instance.

Specified by:
getLocalTransaction in interface ManagedConnection (src)
Returns:
the local transaction
Throws:
ResourceException (src) - for a generic error

getMetaData

public ManagedConnectionMetaData (src)  getMetaData()
                                      throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Gets metadata inormation for this instances underlying resource manager instance.

Specified by:
getMetaData in interface ManagedConnection (src)
Returns:
the managed connection meta data
Throws:
ResourceException (src) - for a generic error

getXAResource

public XAResource (src)  getXAResource()
                         throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Returns an XAResource instance.

Specified by:
getXAResource in interface ManagedConnection (src)
Returns:
the XAResource
Throws:
ResourceException (src) - for a generic error

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Gets the logwriter for this instance.

Specified by:
getLogWriter in interface ManagedConnection (src)
Returns:
the log writer
Throws:
ResourceException (src) - for a generic error

setLogWriter

public void setLogWriter(java.io.PrintWriter out)
                  throws ResourceException (src) 
Description copied from interface: ManagedConnection (src)
Sets the logwriter for this instance.

Specified by:
setLogWriter in interface ManagedConnection (src)
Parameters:
out - the writer
Throws:
ResourceException (src) - for a generic error

close

protected void close()

fireConnectionEvent

protected void fireConnectionEvent(ConnectionEvent (src)  evt)