Class MCFConfigParserImpl
- java.lang.Object
-
- com.sun.enterprise.connectors.util.MCFConfigParserImpl
-
- All Implemented Interfaces:
ConnectorConfigParser
,MCFConfigParser
public class MCFConfigParserImpl extends Object implements MCFConfigParser
This is managed connection factory configuration parser. It parses the ra.xml file for the managed connection factory specific configurations like managed connection factory javabean properties .- Author:
- Srikanth P
-
-
Field Summary
-
Fields inherited from interface com.sun.enterprise.connectors.util.ConnectorConfigParser
AOR, configParserUtil, ddTransformUtil, MCF, MSL, RA
-
-
Constructor Summary
Constructors Constructor Description MCFConfigParserImpl()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getConfidentialProperties(ConnectorDescriptor desc, String rarName, String... keyFields)
GiString[]
getConnectionDefinitionNames(ConnectorDescriptor desc)
Obtains the connection definition names of a given rar.Properties
getJavaBeanProps(ConnectorDescriptor desc, String connectionDefName, String rarName)
Parses the ra.xml for the managed connection factory javabean properties.
-
-
-
Method Detail
-
getConnectionDefinitionNames
public String[] getConnectionDefinitionNames(ConnectorDescriptor desc) throws ConnectorRuntimeException
Description copied from interface:MCFConfigParser
Obtains the connection definition names of a given rar.- Specified by:
getConnectionDefinitionNames
in interfaceMCFConfigParser
- Parameters:
desc
- ConnectorDescriptor pertaining to rar.- Returns:
- Array of connection definiton names as strings
- Throws:
ConnectorRuntimeException
- If rar is not exploded or incorrect ra.xml
-
getJavaBeanProps
public Properties getJavaBeanProps(ConnectorDescriptor desc, String connectionDefName, String rarName) throws ConnectorRuntimeException
Parses the ra.xml for the managed connection factory javabean properties. The managed connection factory to be parsed is identified by the moduleDir where ra.xml is present and the connection definition name . Connection definition name will be unique in a given ra.xml. It throws ConnectorRuntimeException if either or both the parameters are null, if corresponding rar is not deployed, if no connection definition name is found in ra.xml. If rar is deployed and connection definition name is present but no properties are present for the corresponding connection definition name, null is returned.- Specified by:
getJavaBeanProps
in interfaceConnectorConfigParser
- Parameters:
desc
- ConnectorDescriptor pertaining to rar.connectionDefName
- connection definition name which is unique across all theelements in a given rar. - Returns:
- Javabean properties with the propety names and values of propeties. The property values will be the values mentioned in ra.xml if present. Otherwise it will be the default values obtained by introspecting the javabean. In both the case if no value is present, empty String is returned as the value.
- Throws:
ConnectorRuntimeException
- if either of the parameters are null. If corresponding rar is not deployed i.e moduleDir is invalid. If no connection definition name is found in ra.xml
-
getConfidentialProperties
public List<String> getConfidentialProperties(ConnectorDescriptor desc, String rarName, String... keyFields) throws ConnectorRuntimeException
Description copied from interface:ConnectorConfigParser
Gi- Specified by:
getConfidentialProperties
in interfaceConnectorConfigParser
- Returns:
- Throws:
ConnectorRuntimeException
-
-