Configuration
Once you have written your processor, you need to include it in the
configuration of the main controller for all widgets. By default the
Widget Framework uses DefaultMapController
as the
controller for all widgets, unless you have provided your own custom
controllers for specific widgets.
To add your processor to the DefaultMapController
you need to create a
DefaultMapController.properties
file and add the
following:
$class=com.escenic.framework.controller.impl.DefaultMapController
widgetProcessor.custom-key=/com/mycompany/controller/processor/CustomCommonWidgetProcessor
You can add more than one processor in the
.properties
file. They will then be executed in
the order they appear.
You may also need to create a .properties
file
for your CustomCommonWidgetProcessor
and
configure it according to your requirements.