com.github.smokestack.jca.spi
Class MockManagedConnectionFactory

java.lang.Object
  extended by com.github.smokestack.jca.spi.MockManagedConnectionFactory
All Implemented Interfaces:
Serializable, ManagedConnectionFactory

public class MockManagedConnectionFactory
extends Object
implements ManagedConnectionFactory

Author:
gliptak
See Also:
Serialized Form

Field Summary
protected  PrintWriter printWriter
           
 
Constructor Summary
MockManagedConnectionFactory()
           
 
Method Summary
 Object _createConnectionFactory()
           
 Object _createConnectionFactory(ConnectionManager connectionManager)
           
 ManagedConnection _createManagedConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 PrintWriter _getLogWriter()
           
 ManagedConnection _matchManagedConnections(Set set, Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 void _setLogWriter(PrintWriter printWriter)
           
 Object createConnectionFactory()
           
 Object createConnectionFactory(ConnectionManager connectionManager)
           
 ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 PrintWriter getLogWriter()
           
 ManagedConnection matchManagedConnections(Set set, Subject subject, ConnectionRequestInfo connectionRequestInfo)
           
 void setLogWriter(PrintWriter printWriter)
           
 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.ManagedConnectionFactory
equals, hashCode
 

Field Detail

printWriter

protected PrintWriter printWriter
Constructor Detail

MockManagedConnectionFactory

public MockManagedConnectionFactory()
Method Detail

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.