Skip to main content



      Home
Home » Modeling » EMF » Listening for EObject creation
Listening for EObject creation [message #629476] Tue, 28 September 2010 07:58 Go to next message
Eclipse UserFriend
Ed

I writing an OSGI bundle which injects behaviour into EObjects by
decorating them at runtime with an Adapter.

All the EObjects have been created in different OSGI bundles using the
Factory createXXX() method. I want to avoid cross dependencies between the
bundle creating the objects and the bundle decorating the objects. Would
it be useful to be able to register a notification listener to the Factory
and listen for the creation of EObjects?

Robert
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: Listening for EObject creation [message #629633 is a reply to message #629476] Tue, 28 September 2010 23:44 Go to previous message
Eclipse UserFriend
Robert,

I've always been averse to this because I see it as an open invitation
to poison the communal fountain of objects. You can't know all the
different clients that are using a given factory nor assume that they
want their objects polluted and observed by arbitrary things injected by
other clients. For what you describe, it seems that demand created
adapters would suffice.


Robert Onslow wrote:
> Ed
>
> I writing an OSGI bundle which injects behaviour into EObjects by
> decorating them at runtime with an Adapter.
>
> All the EObjects have been created in different OSGI bundles using the
> Factory createXXX() method. I want to avoid cross dependencies between
> the bundle creating the objects and the bundle decorating the objects.
> Would it be useful to be able to register a notification listener to
> the Factory and listen for the creation of EObjects?
>
> Robert
Previous Topic:[CDO] How to close server ?
Next Topic:EMF Ant tasks
Goto Forum:
  


Current Time: Fri Jul 04 18:59:18 EDT 2025

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

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

Back to the top