com.github.smokestack.jca.spi
Class MockManagedConnection
java.lang.Object
com.github.smokestack.jca.spi.MockManagedConnection
- All Implemented Interfaces:
- ManagedConnection
public class MockManagedConnection
- extends Object
- implements ManagedConnection
- Author:
- gliptak
printWriter
protected PrintWriter printWriter
listeners
protected List<ConnectionEventListener> listeners
MockManagedConnection
public MockManagedConnection()
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.