|
Re: Using XBase vs JavaVMTypes [message #1716217 is a reply to message #1716165] |
Wed, 02 December 2015 09:30 |
|
Xbase is not limited to a single type, you can infer as many as you want from one resource.
But I'm afraid you want the opposite: Many resources contribute code to one factory class. That is not something that Xbase supports out of the box.
m:1 generation is a problem that you should try to avoid if you can change your target infrastructure. If you can't avoid it, you'll have to come up with an incremental update mechanism for those factories. Otherwise incremental builds in Eclipse won't work.
|
|
|
|
Re: Using XBase vs JavaVMTypes [message #1716394 is a reply to message #1716307] |
Thu, 03 December 2015 13:22 |
|
If you don't generate code incrementally, your user will not be able to reference it before he hits the "generate" button. And that "generate" button would be slow, as it does a full build. So incremental builds are about usability.
A 1:1 generation solution is usually the best idea. When I need some kind of aggregation, I usually model it explicitly in my DSL:
Let's say I have "Modules" that are composed into an application. Instead of just picking up all the "Modules" in my project and generating an application from that, I'll have a dedicated "Application" concept in my DSL where the user lists the modules he wants. It works with incremental builds and is more flexible (the user can reuse modules in different applications). Maybe that general idea is applicable to your domain too.
|
|
|
Powered by
FUDForum. Page generated in 0.03285 seconds