public class ConnectorDDTransformUtils extends Object
| Constructor and Description |
|---|
ConnectorDDTransformUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ConnectionDefDescriptor[] |
getConnectionDefs(ConnectorDescriptor connectorDesc)
Obtain all the ConnectionDefDescriptor(abstracts the
|
static ConnectorDescriptor |
getConnectorDescriptor(String moduleDir,
String rarModuleName)
Get the ConnectorDescriptor object which represents the ra.xml and
sun-ra.xml from an exploded rar module.
|
static ConnectorDescriptorInfo |
getConnectorDescriptorInfo(ConnectionDefDescriptor connectionDefDescriptor)
Constructs ConnectorDescriptorInfo object from the
ConnectionDefDescriptor object (deployment descriptor of connector
module)
|
MessageListener[] |
getMessageListeners(ConnectorDescriptor desc)
Returns all the message listeners present in the connectorDescriptor
which abstracts the ra.xml
|
static String |
getResourceAdapterClassName(String rarLocation) |
static Set |
mergeProps(List<Property> props,
Set defaultMCFProps)
merges the properties mentioned in first parameter with the Set of
properties mentioned in second parameter.
|
static Set |
mergeProps(List<Property> props,
Set defaultMCFProps,
Properties propertiesToSkip)
merges the properties mentioned in first parameter with the Set of
properties mentioned in second parameter.
|
public static ConnectorDescriptorInfo getConnectorDescriptorInfo(ConnectionDefDescriptor connectionDefDescriptor)
connectionDefDescriptor - ConnectionDefDescriptor object which
represents the ra.xml and sun-ra.xmlpublic static Set mergeProps(List<Property> props, Set defaultMCFProps, Properties propertiesToSkip)
props - Array of properties that needs to be merged with
properties mentioned in deployment descriptor. These values
takes precedence over values present in deployment descriptors.propertiesToSkip - properties to be skipped while merging. They will be skipped
only when both its name as well as its value match.public static Set mergeProps(List<Property> props, Set defaultMCFProps)
props - Array of properties that needs to be merged with
properties mentioned in deployement descriptor. These values
takes precedence over values present in deployment descriptors.public static ConnectorDescriptor getConnectorDescriptor(String moduleDir, String rarModuleName) throws ConnectorRuntimeException
moduleDir - Directory where rar is exploded.ConnectorRuntimeException - if ra.xml could not be located or
invalid. For 1.0 type rar if sun-ra.xml is not present or
invalid this exception is thrown. For 1.5 type rar sun-ra.xml
should not be present.public static ConnectionDefDescriptor[] getConnectionDefs(ConnectorDescriptor connectorDesc)
connectorDesc - ConnectorDescriptor object which
represents the ra.xml and sun-ra.xmlpublic MessageListener[] getMessageListeners(ConnectorDescriptor desc)
desc - connectorDescriptor which abstracts the ra.xmlCopyright © 2019. All rights reserved.