@Contract
public interface ActiveResourceAdapter
| Modifier and Type | Method and Description |
|---|---|
javax.resource.spi.ManagedConnectionFactory[] |
createManagedConnectionFactories(ConnectorConnectionPool ccp,
ClassLoader loader)
Creates managed Connection factories corresponding to one pool.
|
javax.resource.spi.ManagedConnectionFactory |
createManagedConnectionFactory(ConnectorConnectionPool ccp,
ClassLoader loader)
Creates managed Connection factory instance.
|
void |
destroy()
uninitializes the resource adapter.
|
ClassLoader |
getClassLoader()
Returns the class loader that is used to load the RAR.
|
ConnectorDescriptor |
getDescriptor()
Returns the Connector descriptor which represents/holds ra.xml
|
String |
getModuleName()
Returns the module Name of the RAR
|
javax.resource.spi.ResourceAdapter |
getResourceAdapter()
returns the resource-adapter bean
|
boolean |
handles(ConnectorDescriptor desc,
String moduleName)
Indicates whether a particular implementation of ActiveRA can handle the RAR in question.
|
void |
init(javax.resource.spi.ResourceAdapter ra,
ConnectorDescriptor cd,
String moduleName,
ClassLoader loader)
initializes the active (runtime) RAR
|
void |
setup()
initializes the resource adapter bean and the resources, pools
|
void init(javax.resource.spi.ResourceAdapter ra,
ConnectorDescriptor cd,
String moduleName,
ClassLoader loader)
throws ConnectorRuntimeException
ra - resource-adapter beancd - connector-descriptormoduleName - rar-nameloader - classloader for the RARConnectorRuntimeException - when unable to initialize the runtime RAvoid setup()
throws ConnectorRuntimeException
ConnectorRuntimeException - This exception is thrown if the
setup/initialization fails.void destroy()
ConnectorDescriptor getDescriptor()
boolean handles(ConnectorDescriptor desc, String moduleName)
desc - ConnectorDescriptormoduleName - resource adapter namejavax.resource.spi.ManagedConnectionFactory[] createManagedConnectionFactories(ConnectorConnectionPool ccp, ClassLoader loader)
ccp - Connector connection pool which contains the pool properties
and ra.xml values pertaining to managed connection factory
class. These values are used in MCF creation.loader - Classloader used to managed connection factory class.javax.resource.spi.ManagedConnectionFactory createManagedConnectionFactory(ConnectorConnectionPool ccp, ClassLoader loader)
ccp - Connector connection pool which contains the pool properties
and ra.xml values pertaining to managed connection factory
class. These values are used in MCF creation.loader - Classloader used to managed connection factory class.ClassLoader getClassLoader()
ClassLoader object.String getModuleName()
String representing the name of the
connector modulejavax.resource.spi.ResourceAdapter getResourceAdapter()
Copyright © 2017. All rights reserved.