| [news.eclipse.stp.sca-tools] Re: Extending the SCA Meta Model |
Hi Stéphane,
Following the sca model extension guide, I've extended the SCA model with an osgi implementation in a new Ecore model.Hi Damien,
Meta object Id values can be the same for different meta models. Could you clarify how are you doing to add the OSGi type?
Ecore and genmodel files are accessible at
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/frascati/trunk/assembly-factory/model/org.ow2.frascati.model.osgi/model/
Thanks
Damien
If your OSGi type is defined in a new meta model (plugin), this meta model can't reuse the FraSCAti namespace.
If you want to use the FraSCAti namespace, you must add the OSGi implementation type directly in the FraSCAti meta model and then regenerate the code.
Regards,
Stéphane
Damien Fournier a écrit :Hi All,
I'm trying to extend the SCA meta model by adding a new implementation type (currently an implementation.osgi element specific for the OW2 FraSCAti platform).
My extension integrates with the core sca metal model, but I still have an issue with meta object id, when generating java code for this model.
The meta object id value for my OsgiPackage.OSGI_IMPLEMENTATION is set to "1" which is in conflict with existing FrascatiPackage.FRACTAL_IMPLEMENTATION
Following FraSCAti and Tuscany model extension, meta objects ids seem to be unique
Thus, does anyone knows how to generate java code from a model extension without having conflict with meta object ids
Thanks
Damien