Skip to content
Rubén Díaz edited this page May 24, 2017 · 26 revisions

JSON Plug-in

Ín future, the JSON plugin should be able to also merge arbitrary JSON files. However, currently due to business needs, we just support a specific merge algorithm for sencha architect configuration files. Thus, CobiGen is able to generate sencha architect projects for client generation and potentially add new views to already existing sench archtiect projects.

Trigger Extensions

As for the ExtJS generation the input is a java object, the trigger expressions (including matchers and variable assignments) are implemented as Java.

Merger extensions

There are currently these merge strategies:

Generic JSON Merge * merge strategy jsonmerge(add the new code respecting the existent is case of conflict) * merge strategy jsonmerge_override (add the new code overwriting the existent in case of conflict)

Sencha Architect * merge strategy sencharchmerge(add the new code respecting the existent is case of conflict) * merge strategy sencharchmerge_override (add the new code overwriting the existent in case of conflict)

  1. JsonArray’s will be ignored / replaced in total

  2. JsonObjects in conclict will be processed recursively ignoring adding non existent elements.

Technical info about the merge process and how the merge extensions work are here.

Clone this wiki locally