|
Re: Listening for EObject creation [message #629633 is a reply to message #629476] |
Wed, 29 September 2010 03:44 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02636 seconds