Load Resource Bundles for Plug-Ins

TIBCO MDM plug-ins such as GDSN Plug-in provides incremental resource bundles, such as SharedStringResources.properties, SharedDBStringResources.properties, htmlresources.properties, UserText.properties, and jsresource.properties.

These resource bundles are packaged within the plug-ins library under the standard package name, that is, com.tibco.mdm.properties.plugin_name.

The com.tibco.mdm.plugins property in the ConfigValues.xml file determines the order in which the resource bundle needs to be loaded so that a correct resource value is fetched from the right resource bundle of a plug-in.

When any plug-in is installed, a post-configuration step pre-pends the com.tibco.mdm.plugins property value with the plug-in name.

For example, after installing the GDSN Plug-in, the post-configuration step pre-pends "GDSN" to the com.tibco.mdm.plugins property value. A sample ConfigValues.xml looks as follows:

<Category description="Plugins properties" name="Plugins" visibility="Advanced">
  <ConfValue description="List of plugins installed."        isHotDeployable="false" name="Plugins List"        propname="com.tibco.mdm.plugins" sinceVersion="8.0"        visibility="Advanced">
       		<ConfString default="" value="GDSN"/>
  	</ConfValue>
</Category>

After installing the plug-ins, the entry for com.tibco.mdm.plugins property in the ConfigValues.xml looks as follows:

<Category description="Plugins properties" name="Plugins" visibility="Advanced">
   <ConfValue description="List of plugins installed."     isHotDeployable="false" name="Plugins List"     propname="com.tibco.mdm.plugins" sinceVersion="8.0"     visibility="Advanced">
    		<ConfString default="" value="PluginA,GDSN"/>
	   </ConfValue>
</Category>

In this case, the order of loading resource bundle is:

PluginA resource bundle:
com.tibco.mdm.properties.pluginA

GDSN Plug-in resource bundle:
 com.tibco.mdm.properties.gdsn

Base product resource bundle: com.tibco.mdm.properties.mdm