Hello Dennis,
Answers below:
Dennis Wagelaar a écrit :
*snip*
I encountered this problem too... so I add an option to clear the
resourceSet after each transformation run. It's definitely not the
better solution...
What are your opinions on this? William: what do you think of an
architecture change that involves something like a ModelLoader?
I agree with your demonstration. A solution could be to make the
EMFModelFactory "dynamic":
* in CoreService, no more registry for it, but a
"createModelFactory(String modelFactoryName)" method.
* in the EMFModelFactory, a non-static ResourceSet.
So the EMFModelFactory is transparently linked with its ResourceSet
instance, and is recreated for each launch.
Note that a programmatic launch (or another launching tool, like
ant) can provide the same behaviour as before is necessary, by
keeping the same factory into chained transformation.
Would you agree with that? I tested an implementation and attached a
patch to this mail if you want to see details.
Thank you for your feedback!
William