tyrex.resource.jca
final class ConnectorLoader extends Object
In order to enable deployment of multiple connector versions and their dependent JARs, each connector can be loaded in a separate class loader.
The connector deployment descriptor specifies the interface and implementation classes used by the connector.
This class provides a mechanism to obtain a new managed connection and a new connection factory from a connector loaded in a separate class loader. In addition, it validates that connection and factory objects match the classes specified in the deployment descriptor.
Version: $Revision: 1.2 $
Field Summary | |
---|---|
protected boolean | _localSupported
True if local transactions supported by this connector. |
protected ManagedConnectionFactory | _managedFactory
An instance of the managed connection factory. |
protected boolean | _xaSupported
True if XA transactions supported by this connector. |
Constructor Summary | |
---|---|
ConnectorLoader(ClassLoader loader, String managedFactoryCN, String factoryCN, String connCN, boolean xaSupported, boolean localSupported)
Constructs a new connection loader.
|
Method Summary | |
---|---|
protected Object | createConnectionFactory(ConnectionManager manager)
Creates a new client connection factory. |
protected ManagedConnection | createManagedConnection(Subject subject, ConnectionRequestInfo requestInfo)
Creates a new managed connection. |
protected ManagedConnectionFactory | getConfigFactory()
Returns the managed connection factory. |
protected Object | getConnection(ManagedConnection managed, Subject subject, ConnectionRequestInfo requestInfo)
Creates a new client connection. |
protected ManagedConnection | matchManagedConnections(Set set, Subject subject, ConnectionRequestInfo requestInfo)
Matches a managed connection. |
protected void | setLogWriter(PrintWriter logWriter) |
Parameters: loader The class loader to use managedFactoryCN The class name of the managed connection factory factoryCN The class name of the client connection factory connCN The class name of the client connection xaSupported True if XA transactions supported localSupported True if local transactions supported configProperties Vector of DDConfigProperty objects. The vector may be null.
Throws: Exception An error occured attempting to resolve any of the specified class names
Returns: A client connection factory
Returns: A managed connection
Returns: The managed connection factory
Returns: A client connection
Returns: A managed connection, or null