Bug 318365 - Cleanup uninjection code
Summary: Cleanup uninjection code
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: E4 (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-29 14:27 EDT by Oleg Besedin CLA
Modified: 2012-12-13 15:00 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Besedin CLA 2010-06-29 14:27:42 EDT
The uninjection code:

1) works differently from most other paths: ContextInjectionFactory#uninject() is using internal functionality rather then IInjector;

2) sends events to all injected objects rathern then *the* object as [generic] listeners don't know which objects they are for

We likely need to start storing the injected object in the RunAndTrackExt and then only call #update() methods if the objects match.

The PrimaryObjectSupplier likely needs to get a new method - #forget(Object) ? - that would cause EclipseContext to drop links to the specified object.