com.github.smokestack.jca.spi
Class MockManagedConnection

java.lang.Object
  extended by com.github.smokestack.jca.spi.MockManagedConnection
All Implemented Interfaces:
ManagedConnection

public class MockManagedConnection
extends Object
implements ManagedConnection

Author:
gliptak

Field Summary
protected  List<ConnectionEventListener> listeners
           
protected  PrintWriter printWriter
           
 
Constructor Summary
MockManagedConnection()
           
 
Method Summary
 void _addConnectionEventListener(ConnectionEventListener listener)
           
 void _associateConnection(Object arg0)
           
 void _cleanup()
           
 void _destroy()
           
 Object _getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 LocalTransaction _getLocalTransaction()
           
 PrintWriter _getLogWriter()
           
 ManagedConnectionMetaData _getMetaData()
           
 XAResource _getXAResource()
           
 void _removeConnectionEventListener(ConnectionEventListener listener)
           
 void _setLogWriter(PrintWriter printWriter)
           
 void addConnectionEventListener(ConnectionEventListener listener)
           
 void associateConnection(Object arg0)
           
 void cleanup()
           
 void destroy()
           
 Object getConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 LocalTransaction getLocalTransaction()
           
 PrintWriter getLogWriter()
           
 ManagedConnectionMetaData getMetaData()
           
 XAResource getXAResource()
           
 void removeConnectionEventListener(ConnectionEventListener listener)
           
 void setLogWriter(PrintWriter printWriter)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

printWriter

protected PrintWriter printWriter

listeners

protected List<ConnectionEventListener> listeners
Constructor Detail

MockManagedConnection

public MockManagedConnection()
Method Detail

addConnectionEventListener

public void addConnectionEventListener(ConnectionEventListener listener)
Specified by:
addConnectionEventListener in interface ManagedConnection

_addConnectionEventListener

public void _addConnectionEventListener(ConnectionEventListener listener)

associateConnection

public void associateConnection(Object arg0)
                         throws ResourceException
Specified by:
associateConnection in interface ManagedConnection
Throws:
ResourceException

_associateConnection

public void _associateConnection(Object arg0)
                          throws ResourceException
Throws:
ResourceException

cleanup

public void cleanup()
             throws ResourceException
Specified by:
cleanup in interface ManagedConnection
Throws:
ResourceException

_cleanup

public void _cleanup()
              throws ResourceException
Throws:
ResourceException

destroy

public void destroy()
             throws ResourceException
Specified by:
destroy in interface ManagedConnection
Throws:
ResourceException

_destroy

public void _destroy()
              throws ResourceException
Throws:
ResourceException

getConnection

public Object getConnection(Subject subject,
                            ConnectionRequestInfo connectionRequestInfo)
                     throws ResourceException
Specified by:
getConnection in interface ManagedConnection
Throws:
ResourceException

_getConnection

public Object _getConnection(Subject subject,
                             ConnectionRequestInfo connectionRequestInfo)
                      throws ResourceException
Throws:
ResourceException

getLocalTransaction

public LocalTransaction getLocalTransaction()
                                     throws ResourceException
Specified by:
getLocalTransaction in interface ManagedConnection
Throws:
ResourceException

_getLocalTransaction

public LocalTransaction _getLocalTransaction()
                                      throws ResourceException
Throws:
ResourceException

getLogWriter

public PrintWriter getLogWriter()
                         throws ResourceException
Specified by:
getLogWriter in interface ManagedConnection
Throws:
ResourceException

_getLogWriter

public PrintWriter _getLogWriter()
                          throws ResourceException
Throws:
ResourceException

getMetaData

public ManagedConnectionMetaData getMetaData()
                                      throws ResourceException
Specified by:
getMetaData in interface ManagedConnection
Throws:
ResourceException

_getMetaData

public ManagedConnectionMetaData _getMetaData()
                                       throws ResourceException
Throws:
ResourceException

getXAResource

public XAResource getXAResource()
                         throws ResourceException
Specified by:
getXAResource in interface ManagedConnection
Throws:
ResourceException

_getXAResource

public XAResource _getXAResource()
                          throws ResourceException
Throws:
ResourceException

removeConnectionEventListener

public void removeConnectionEventListener(ConnectionEventListener listener)
Specified by:
removeConnectionEventListener in interface ManagedConnection

_removeConnectionEventListener

public void _removeConnectionEventListener(ConnectionEventListener listener)

setLogWriter

public void setLogWriter(PrintWriter printWriter)
                  throws ResourceException
Specified by:
setLogWriter in interface ManagedConnection
Throws:
ResourceException

_setLogWriter

public void _setLogWriter(PrintWriter printWriter)
                   throws ResourceException
Throws:
ResourceException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2010 Smokestack. All Rights Reserved.