Bug 389532 - Remove use of the StateHelper from the Standard Quasi impl classes
Summary: Remove use of the StateHelper from the Standard Quasi impl classes
Status: NEW
Alias: None
Product: Virgo
Classification: RT
Component: runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 12:00 EDT by Chris Frost CLA
Modified: 2012-09-13 13:05 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Frost CLA 2012-09-13 12:00:43 EDT
The StateHelper is passed around under the covers and used to get all the bundles depending on another bundle. This can be achieved much easier by checking all the consumers of the BundleWire instead.
Comment 1 Chris Frost CLA 2012-09-13 13:05:28 EDT
Actually, wireAdmin isn't required. This change relies on 

'this.exportPackageDescription.getExporter().getDependents();'

having the same behaviour as 

'this.stateHelper.getDependants(new BundleDescription[]{this.exportPackageDescription.getExporter()});'

They both return an array of BundleDescription and subsequently filtered to find the set of bundles importing the package described by 

'this.exportPackageDescription' 

Code changes committed and pushed to a branch with the name of this bug.