[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.stp.sca-tools] Re: Extending the SCA Meta Model


Hi Stéphane,

Stephane Drapeau a écrit :
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?
Following the sca model extension guide, I've extended the SCA model with an osgi implementation in a new Ecore model.
This implementation has an EAttribute named "bundle". I've also added a DocumentRoot (EObject) which
has an EReference on the "OsgiImplmentation" (as explained in the extension guide)


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/

This metal model has a different namespace of existing FraSCAti meta model (http://frascati.ow2.org/osgi).

If Meta object Id values can be the same for different SCA model extensions, then how to make distinction between
two different implementations or bindings ? For instance when calling getImplementation() on a SCA Component, how
to know if this component is implemented with java, spring, bpel, etc ?


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