Business Rule Language Extensions
Identifier:
ilog.rules.studio.model.brl.languageExtension
Since:
JRules 6.0
Description:
Allows plug-ins to define an extension to an existing language, for example, a new locale. This extension point extends the BRLDF classpath used to lookup for a language definition. As the classpath of this plugin is added to BRLDF Definition Factory, files related to business rule languages can be added to this plug-in.
Note that in addition to providing an extension for this extension point, developpers should also provide a specific verbalizer for the given locale and a localized System BOM.
The verbalizer should be provided using the ilog.rules.studio.model.vocabulary.verbalizers.
The System BOM file (boot_xx.voc) should be made available in the following path: ilog/rules/vocabulary
Configuration Markup:
<!ELEMENT extension (languageExtension+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
- point - A fully qualified identifier of the target extension point.
- id - An optional identifier of the extension instance.
- name - An optional name of the extension instance.
<!ELEMENT languageExtension EMPTY>
<!ATTLIST languageExtension
id CDATA #REQUIRED
class CDATA #REQUIRED>
- id - The extension point identifier.
- class - The class of the language extension. This class is used to extend the classpath of BRLDF Definition Factory. The content of this class is not important.
Examples:
A plugin providing an an extension to languageExtensions extension point to add support for italian Locale to BAL, should provide:
- A class whose class loader is used to load language extensions
- The following properties file for BAL language
- ilog/rules/brl/actions_it.properties
- ilog/rules/brl/bindings_it.properties
- ilog/rules/brl/brl_it.properties
- ilog/rules/brl/expr_it.properties
- ilog/rules/brl/bal60/bal_it.properties
- ilog/rules/brl/bal60/balexpr_it.properties
In addition, a dedicated System BOM could be provided by this plugin: ilog/rules/vocabulary/boot_it.voc
Copyright © 1987-2008 ILOG S.A. All rights reserved.