Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Listening for EObject creation
Listening for EObject creation [message #629476] Tue, 28 September 2010 11:58 Go to next message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 13
Registered: April 2010
Junior Member
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] Wed, 29 September 2010 03:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO] How to close server ?
Next Topic:EMF Ant tasks
Goto Forum:
  


Current Time: Thu Apr 25 00:02:35 GMT 2024

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

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

Back to the top