|Configurable Vorto Generators? [message #1725338]
||Wed, 02 March 2016 16:47
| Nagavijay Sivakumar
Registered: August 2015
There are sometimes code generators needs to be configured at runtime with certain properties to have code generated differently. Currently the Vorto generator doesn't have option to provide different configuration for the current generator, instead user has to create a new generator or have new version of the same model with different implementation. This forum is to explore the possibilities of configurable generators. |
The example scenarios are discussed in this topic.
Few example usecase Scanarios:
1. If there is a generator written for Rest api, there is a possibility to generate rest api with standard jsr 311/339 or spring mvc (http:==projects.spring.io/spring-framework/) (assuming spring mvc is commonly used in enterprise ). Often this should be configured as a configurable parameter instead of writing new generator.
2. For generator written to handle Database related code, often there could be many different implementation of database (like mysql, mongodb, oracle etc). Each of the generated code have few minor changes only.
For these kind of scenarios, writing generator for every possible database vendor is not efficient. So, user should have option to provide settings at the runtime.
This section is discuss the above in detail.
- Possible options could be, is to have a default properties file within generator and the properties are overriden at runtime by User supplied values from GUI or command line parameters depends on the context it's used.
[Updated on: Wed, 02 March 2016 16:50]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01641 seconds