Difference between revisions of "AutowireHelper"

From OS.bee documentation
Jump to: navigation, search
(Created page with "To include a custom autowire helper as delegate for the Service to use an entry in the plugin.xml is required. See the following code as template: <syntaxhighlight lang="xml"...")
 
Line 1: Line 1:
 +
The purpose of an AutowireHelper is the model to model transformation of a entity model or a DTO model to an ecview model. An ecview model represents the model for a dialog. It either can be generated by an AutowireHelper or manually by using the ui model. This enables the system to create user interfaces automatically according to the underlying entity. As entity model changes, dialogs using the autobinding keyword and referencing the associated DTO do the same. An autowiring implements rules how to interprete data types and structural information to a valid ecview model. AutowireHelper uses metadata associated with the entity model to modify the transformation behaviour.
 +
 
To include a custom autowire helper as delegate for the Service to use an entry in the plugin.xml is required.
 
To include a custom autowire helper as delegate for the Service to use an entry in the plugin.xml is required.
 
See the following code as template:
 
See the following code as template:

Revision as of 06:45, 19 October 2017

The purpose of an AutowireHelper is the model to model transformation of a entity model or a DTO model to an ecview model. An ecview model represents the model for a dialog. It either can be generated by an AutowireHelper or manually by using the ui model. This enables the system to create user interfaces automatically according to the underlying entity. As entity model changes, dialogs using the autobinding keyword and referencing the associated DTO do the same. An autowiring implements rules how to interprete data types and structural information to a valid ecview model. AutowireHelper uses metadata associated with the entity model to modify the transformation behaviour.

To include a custom autowire helper as delegate for the Service to use an entry in the plugin.xml is required. See the following code as template:

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
     <extension
           point="org.lunifera.ecview.dsl.autowireDelegate">
        <autowireDelegate
              autowireDelegateClass="de.compex.autowirehelper.AutowireHelper"
              id="de.compex.autowireHelper.autowireDelegate">
        </autowireDelegate>
     </extension>
</plugin>