|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttyrex.resource.jca.ConnectorLoader
Provides a means to create managed connections and connection factories from a connector loaded in a separate class loader.
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.
| Field Summary | |
protected boolean |
_localSupported
True if local transactions supported by this connector. |
protected javax.resource.spi.ManagedConnectionFactory |
_managedFactory
An instance of the managed connection factory. |
protected boolean |
_xaSupported
True if XA transactions supported by this connector. |
| Constructor Summary | |
(package private) |
ConnectorLoader(java.lang.ClassLoader loader,
java.lang.String managedFactoryCN,
java.lang.String factoryCN,
java.lang.String connCN,
boolean xaSupported,
boolean localSupported)
Constructs a new connection loader. |
| Method Summary | |
protected java.lang.Object |
createConnectionFactory(javax.resource.spi.ConnectionManager manager)
Creates a new client connection factory. |
protected javax.resource.spi.ManagedConnection |
createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
Creates a new managed connection. |
protected javax.resource.spi.ManagedConnectionFactory |
getConfigFactory()
Returns the managed connection factory. |
protected java.lang.Object |
getConnection(javax.resource.spi.ManagedConnection managed,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
Creates a new client connection. |
protected javax.resource.spi.ManagedConnection |
matchManagedConnections(java.util.Set set,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
Matches a managed connection. |
protected void |
setLogWriter(java.io.PrintWriter logWriter)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected final javax.resource.spi.ManagedConnectionFactory _managedFactory
protected final boolean _xaSupported
protected final boolean _localSupported
| Constructor Detail |
ConnectorLoader(java.lang.ClassLoader loader,
java.lang.String managedFactoryCN,
java.lang.String factoryCN,
java.lang.String connCN,
boolean xaSupported,
boolean localSupported)
throws java.lang.Exception
loader - The class loader to usemanagedFactoryCN - The class name of the managed connection factoryfactoryCN - The class name of the client connection factoryconnCN - The class name of the client connectionxaSupported - True if XA transactions supportedlocalSupported - True if local transactions supported
java.lang.Exception - An error occured attempting to resolve any
of the specified class names| Method Detail |
protected void setLogWriter(java.io.PrintWriter logWriter)
throws javax.resource.ResourceException
javax.resource.ResourceException
protected javax.resource.spi.ManagedConnection matchManagedConnections(java.util.Set set,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
throws javax.resource.ResourceException
javax.resource.ResourceException
protected javax.resource.spi.ManagedConnection createManagedConnection(javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
throws javax.resource.ResourceException
javax.resource.ResourceException
protected java.lang.Object getConnection(javax.resource.spi.ManagedConnection managed,
javax.security.auth.Subject subject,
javax.resource.spi.ConnectionRequestInfo requestInfo)
throws javax.resource.ResourceException
javax.resource.ResourceException
protected java.lang.Object createConnectionFactory(javax.resource.spi.ConnectionManager manager)
throws javax.resource.ResourceException
javax.resource.ResourceExceptionprotected javax.resource.spi.ManagedConnectionFactory getConfigFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||