Portlet Factory, Version 6.1.2


 

Registry mapping file mappings

The definitions of the mappings are fairly easy to understand.

UseService

Use the named Service Provider model. If the named Service Provider does not exist, the Service Consumer model will generate an error.

UseStub

Use the stub model referenced in the Service Provider model's Service Definition builder call. If there is no reference in that builder call, the original Service Provider is used. If there is a reference but the referenced stub model does not exist, the Service Consumer model will generate an error.

ModifyName

Use the Service Provider whose model ID matches the resultant model ID once the declared pattern and replacement attributes are applied. For example, in the following construct, the selector uses pattern matching to identify which Service Provider models should be swapped and the <ModifyName> mapping declares the replacement names. In this case, any attempt to use a Service Provider containing the substring _testing in its model ID will cause a Service Provider with the substring _production to be used instead. services/myDataServices_testing would be replaced by services/myDataServices_production
<ForServiceMatching pattern="_testing">
<ModifyName pattern="_testing" replacement="_production" />
</ForServiceMatching> 

More examples of allowable constructs are found in the following file: WEB-INF\config\service_mappings\mappings.xml.example

Parent topic: Using data services


Library | Support |