站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 j2ee API Documentation 英文版文档

ManagedConnectionFactory (JBoss J2EE API) - JBoss 3.2.7 j2ee API Documentation 英文版文档


javax.resource.spi
Interface ManagedConnectionFactory

All Superinterfaces:
Serializable

public interface ManagedConnectionFactory
extends Serializable

A ManagedConnectionFactory is a factory for the creation of ManagedConnection objects and ConnectionFactory objects. It provides methods which can be used to match ManagedConnetions.


Method Summary
 Object createConnectionFactory()
          Creates a connection factory instance.
 Object createConnectionFactory(ConnectionManager cxManager)
          Creates a connection factory instance.
 ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cxRequestInfo)
          Creates a new ManagedConnection
 boolean equals(Object other)
          Tests object for equality
 PrintWriter getLogWriter()
          Gets the logwriter for this instance.
 int hashCode()
          Generates a hashCode for this object
 ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, ConnectionRequestInfo cxRequestInfo)
          Returns a matching connection from the set.
 void setLogWriter(PrintWriter out)
          Sets the logwriter for this instance.
 

Method Detail

createConnectionFactory

public Object createConnectionFactory()
                               throws ResourceException
Creates a connection factory instance.

Throws:
ResourceException

createConnectionFactory

public Object createConnectionFactory(ConnectionManager cxManager)
                               throws ResourceException
Creates a connection factory instance.

Throws:
ResourceException

createManagedConnection

public ManagedConnection createManagedConnection(Subject subject,
                                                 ConnectionRequestInfo cxRequestInfo)
                                          throws ResourceException
Creates a new ManagedConnection

Throws:
ResourceException

equals

public boolean equals(Object other)
Tests object for equality


getLogWriter

public PrintWriter getLogWriter()
                         throws ResourceException
Gets the logwriter for this instance.

Throws:
ResourceException

hashCode

public int hashCode()
Generates a hashCode for this object


matchManagedConnections

public ManagedConnection matchManagedConnections(Set connectionSet,
                                                 Subject subject,
                                                 ConnectionRequestInfo cxRequestInfo)
                                          throws ResourceException
Returns a matching connection from the set.

Throws:
ResourceException

setLogWriter

public void setLogWriter(PrintWriter out)
                  throws ResourceException
Sets the logwriter for this instance.

Throws:
ResourceException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.