Class Merger
java.lang.Object
org.jboss.jca.common.metadata.merge.Merger
A Merger.
- Author:
- Stefano Maestri
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classA ConfigPropertyFactory. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecodeConfigProperty(String encodedValue) Decodes a config property.static StringencodeConfigProperty(String propertyValue) Encodes a config property.mergeConfigProperties(Map<String, String> ijProperties, List<ConfigProperty> original) Merge ironJacamar's properties with connector's one returning a List of COnnector's propertiesmergeConnectorAndDs(CommonDataSource cds, Connector connector) Merge a connector with a DataSource metadataMerge aConnectorand aActivationpassing also Matcher to identifyAdminObjectandConnectionDefinitionto merge inside the passed objects
-
Field Details
-
ENCODED_SEMICOLON
- See Also:
-
-
Constructor Details
-
Merger
public Merger()
-
-
Method Details
-
mergeConfigProperties
public List<ConfigProperty> mergeConfigProperties(Map<String, String> ijProperties, List<ConfigProperty> original) Merge ironJacamar's properties with connector's one returning a List of COnnector's properties- Parameters:
ijProperties- ironjacamar's extension style propertiesoriginal- standard connector's properties- Returns:
- merged standard connector's properties (ironjacamar's setting overwrite the standard's one. No new property is added)
-
mergeConnectorWithCommonIronJacamar
Merge aConnectorand aActivationpassing also Matcher to identifyAdminObjectandConnectionDefinitionto merge inside the passed objects- Parameters:
ij- theActivationobjectconn-Connectorobject- Returns:
- The merged
Connector
-
mergeConnectorAndDs
public Connector mergeConnectorAndDs(CommonDataSource cds, Connector connector) throws IllegalArgumentException, Exception Merge a connector with a DataSource metadata- Parameters:
cds- the datasource it is one of interface extendingCommonDataSource. IOW it can be bothDataSourceorXaDataSourceconnector- the connector to merge- Returns:
- the connector with mapped properties taken forn ds
- Throws:
IllegalArgumentException- if version is't 1.0, 1.5 or 1.6Exception- in case of error
-
encodeConfigProperty
Encodes a config property. Replaces all occurences of ';' withENCODED_SEMICOLON.- Parameters:
propertyValue- a property value- Returns:
- the encoded property value
-
decodeConfigProperty
Decodes a config property. Replaces all occurences ofENCODED_SEMICOLONwith ';'.- Parameters:
encodedValue- an encoded property value- Returns:
- the original property value
-