Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » newbie question: emf and osgi ??
newbie question: emf and osgi ?? [message #486999] Mon, 21 September 2009 13:03 Go to next message
Eric Geordi is currently offline Eric GeordiFriend
Messages: 7
Registered: July 2009
Junior Member
Hey guys,

I am just getting started with EMF and was wondering if it is possible to use EMF to declare an osgi service (interface) that can then be implemented in another bundle. Would I need to create another .ecore and .genmodel in the bundle defining the service ? What is the preferred way to do this ?

Thanks,
Eric
Re: newbie question: emf and osgi ?? [message #487013 is a reply to message #486999] Mon, 21 September 2009 13:24 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Eric,

Comments below.

Eric Geordi wrote:
> Hey guys,
>
> I am just getting started with EMF and was wondering if it is possible
> to use EMF to declare an osgi service (interface) that can then be
> implemented in another bundle.
Sure, you can mark an EClass's interface property to true so no Impl is
generated, and even if you generate an Impl, other models could extend
that Impl...
> Would I need to create another .ecore and .genmodel in the bundle
> defining the service ?
Yes, if you want the implementation to be a modeled object.
> What is the preferred way to do this ?
I imagine it might well be good to have a generated Impl to act as a
base and to have models that extend this...
>
> Thanks,
> Eric


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[EMF Databinding] ObservableList.addAll(...) and undo/redo
Next Topic:Shared TransactionalEditingDomain
Goto Forum:
  


Current Time: Thu Apr 25 21:36:19 GMT 2024

Powered by FUDForum. Page generated in 0.02995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top