Open GoogleCodeExporter opened 8 years ago
I think another strategy could be the usage of dependency injection. This can
avoid the generation of many classes as well.
Therefore Spray generates just one class. A Module for the Spray Plugin will be
generated with the GenerationGap Pattern as done now. There the classes will be
injected (one method for every bind).
If now someone wants to override a class he could move the Module description
and just create a new class which extends the Spray generated class he wants to
override. Afterwards this class can be binded in the module manually.
I think this steps could be automated as well with a few Eclipse additions on
the context menu.
Original comment by fabio.filippelli
on 20 Jul 2013 at 9:38
Good point, should the injection approach should be taken as well. This would
introduce Google Guice dependency into the platform.
There is even an example project (https://github.com/jeeeyul/graphiti-overview)
where the usage of dependency injection in Graphiti is demonstrated:
https://github.com/jeeeyul/graphiti-overview/blob/master/net.jeeeyul.erd/src/net
/jeeeyul/erd/table/AddTableFeature.xtend - here even not Java but Xtend is used
(but this would be a too hard shift for us to migrate the templates to producte
Xtend code instead of Java code).
Original comment by de.abg.r...@gmail.com
on 21 Jul 2013 at 7:13
Original issue reported on code.google.com by
de.abg.r...@gmail.com
on 19 Jul 2013 at 11:24