(Developer)

Configuration-based controller command and data bean mapping framework

The configuration-based controller command and data bean mapping framework allows the activation of data beans or the running of controller commands using REST services. The framework significantly reduces the amount of custom code necessary. It provides a way to describe what inputs and outputs are required from a data bean or controller command through a mapping file. A mapping file represents one data bean or controller command. It is further subdivided into profiles, allowing multiple REST resources with different properties to work on the same data bean or controller command. The custom code required to write a resource handler for a single REST resource can be as simple as a single line. The input mapping, type casting, activation, running, and responses are all handled by the framework. To help produce a custom mapping file and handler, a generator tool is provided (restClassicSampleGen), further reducing the effort of creating custom REST resources.

Note: This framework does not use the request properties object (setRequestProperties method) for controller commands. We must define individual setter and getter methods in the controller command. If you need to use the request properties, use the AbstractClassicResourceHandler directly. The configuration-based controller command and data bean mapping framework uses the following concepts: