Refactor Generator object to reduce its responsibilities
Right now the generator has to
- parse the command line arguments
- load the ecore model
- modify the model
- write and compile the model
This violates the single responsibility principle and should be refactored.
As a result, the generator should only take care of the actual workflow (items 2 to 4) and be invoked by another service which handled the command line arguments already and only needs to worry about setting up the generator accordingly.
Edited by Rico Bergmann