com.github.smokestack.jca.spi
Class MockManagedConnectionFactory
java.lang.Object
com.github.smokestack.jca.spi.MockManagedConnectionFactory
- All Implemented Interfaces:
- Serializable, ManagedConnectionFactory
public class MockManagedConnectionFactory
- extends Object
- implements ManagedConnectionFactory
- Author:
- gliptak
- See Also:
- Serialized Form
printWriter
protected PrintWriter printWriter
MockManagedConnectionFactory
public MockManagedConnectionFactory()
createConnectionFactory
public Object createConnectionFactory()
throws ResourceException
- Specified by:
createConnectionFactory
in interface ManagedConnectionFactory
- Throws:
ResourceException
_createConnectionFactory
public Object _createConnectionFactory()
throws ResourceException
- Throws:
ResourceException
createConnectionFactory
public Object createConnectionFactory(ConnectionManager connectionManager)
throws ResourceException
- Specified by:
createConnectionFactory
in interface ManagedConnectionFactory
- Throws:
ResourceException
_createConnectionFactory
public Object _createConnectionFactory(ConnectionManager connectionManager)
throws ResourceException
- Throws:
ResourceException
createManagedConnection
public ManagedConnection createManagedConnection(Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
- Specified by:
createManagedConnection
in interface ManagedConnectionFactory
- Throws:
ResourceException
_createManagedConnection
public ManagedConnection _createManagedConnection(Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
- Throws:
ResourceException
getLogWriter
public PrintWriter getLogWriter()
throws ResourceException
- Specified by:
getLogWriter
in interface ManagedConnectionFactory
- Throws:
ResourceException
_getLogWriter
public PrintWriter _getLogWriter()
throws ResourceException
- Throws:
ResourceException
matchManagedConnections
public ManagedConnection matchManagedConnections(Set set,
Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
- Specified by:
matchManagedConnections
in interface ManagedConnectionFactory
- Throws:
ResourceException
_matchManagedConnections
public ManagedConnection _matchManagedConnections(Set set,
Subject subject,
ConnectionRequestInfo connectionRequestInfo)
throws ResourceException
- Throws:
ResourceException
setLogWriter
public void setLogWriter(PrintWriter printWriter)
throws ResourceException
- Specified by:
setLogWriter
in interface ManagedConnectionFactory
- 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.