javax.resource.spi
Interface ManagedConnectionFactory

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
ManagedFactoryImpl, MessageSenderManager

public interface ManagedConnectionFactory
extends java.io.Serializable

Interface for the resource adapter's connection factory.


Method Summary
 java.lang.Object createConnectionFactory()
          Creates a Connection Factory instance, using a default ConnectionManager from the resource adapter.
 java.lang.Object createConnectionFactory(ConnectionManager manager)
          Creates a Connection Factory instance.
 ManagedConnection createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo info)
          Creates physical connection to the EIS resource manager.
 boolean equals(java.lang.Object o)
           
 java.io.PrintWriter getLogWriter()
          Gets the log writer for the ManagedConnectionFactory.
 int hashCode()
           
 ManagedConnection matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo info)
          Returns a matched connection.
 void setLogWriter(java.io.PrintWriter out)
          Sets the log writer for the ManagedConnectionFactory.
 

Method Detail

createConnectionFactory

java.lang.Object createConnectionFactory(ConnectionManager manager)
                                         throws ResourceException
Creates a Connection Factory instance. The ConnectionFactory instance is initialized with the ConnectionManager.

Throws:
ResourceException

createConnectionFactory

java.lang.Object createConnectionFactory()
                                         throws ResourceException
Creates a Connection Factory instance, using a default ConnectionManager from the resource adapter. instance is initialized with the ConnectionManager.

Throws:
ResourceException

createManagedConnection

ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
                                          ConnectionRequestInfo info)
                                          throws ResourceException
Creates physical connection to the EIS resource manager.

Throws:
ResourceException

matchManagedConnections

ManagedConnection matchManagedConnections(java.util.Set connectionSet,
                                          javax.security.auth.Subject subject,
                                          ConnectionRequestInfo info)
                                          throws ResourceException
Returns a matched connection.

Throws:
ResourceException

setLogWriter

void setLogWriter(java.io.PrintWriter out)
                  throws ResourceException
Sets the log writer for the ManagedConnectionFactory.

Throws:
ResourceException

getLogWriter

java.io.PrintWriter getLogWriter()
                                 throws ResourceException
Gets the log writer for the ManagedConnectionFactory.

Throws:
ResourceException

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object