|
Re: Using generated code to calculate in standalone application [message #725309 is a reply to message #725296] |
Wed, 14 September 2011 13:36 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Comments below.
On 14/09/2011 6:09 AM, ModelGeek wrote:
> Hi,
>
> In my standalone application, i am creating Ecore Model
> programmatically and i am also generating java code using the created
> Ecore file in the same standalone application. Now i would like to
> create N numbers of XMI(concrete models) and would like to calculate
> that using the generated code from ecore in the same application
> sesssion. Can you guide me in this. What are the neccessary steps to
> achieve that.
I'm not sure I follow. Generated models and the EMF runtime bundles on
which they depend do all work in stand alone mode...
>
> The motive behind using generated code is performance as currently i
> am calculting XMI models by using global setting and invocation
> delegates for standalone apps and performance is not soo good.
Which implementations of these are you using? The generated code will
still use these same delegates, so I'm not sure this will help at all...
I guess you mean you want to generate a model and then load that
generated code into your running process. That aspect isn't really an
EMF question, but a basic Java one. You can look at how JETEmitter
uses a URLClassLoader for dynamic templates (which involves compiling
the classes produced from converter the jet templates to .java files and
then loading the .class files resulting from that).
>
> i will really appreciate your help and input.
>
> Thanks in advance
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04054 seconds