|
|
Re: Infer from external source [message #1060542 is a reply to message #1060355] |
Sun, 26 May 2013 14:04 |
First Last Messages: 17 Registered: March 2013 |
Junior Member |
|
|
Jan Kohnlein wrote on Fri, 24 May 2013 05:22Can't you just integrate the code on the target platform, e.g. let your
inferred elements inherit from or delegate to some implementation in the
second plug-in?
Alternatively, you could use Xtend instead of a DSL and dynamically add
your changes using Active Annotations
No; the other project isn't a plugin at all; it's just a normal project or even just a jar file.
What I am accomplishing is somewhat similar to what Active Annotations does; but there are a lot of options in terms of what types are exposed how dependencies flow.
At this point I have an implementation that uses reflection; the DSL plug-in examines the DSL, finds references to external code, reflects to find it, passes a set of generic Map/List structured data to that code, gets back some Map/List structured data, and uses that to build methods.
This is "fine", but obviously means passing around just basic Java types; but that's not too bad, since it means none of the code has a weird compilation dependency. However I may still create yet a third project which the DSL and extension code depend on simply to define the data types to make them easier to work with & possibly to version.
|
|
|
Powered by
FUDForum. Page generated in 0.02631 seconds