Bug 169567 - [services] Add an explicit priority argument to the DsfSession.addServiceEventListener()
Summary: [services] Add an explicit priority argument to the DsfSession.addServiceEven...
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-dsf (show other bugs)
Version: 6.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords: api
Depends on:
Blocks:
 
Reported: 2007-01-04 12:06 EST by Pawel Piech CLA
Modified: 2020-09-04 15:17 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Piech CLA 2007-01-04 12:06:41 EST
Currently, the priority of the listener is determined by the DsfSession class implementation.  The implementation checks if the listener is an instance of IDsfService, and if so, it extracts the startup number of the service, which is the priority.  
This mechanism is inflexible.  If a service contains another class, such as the cache manager, the cache manager cannot be registered directly as an event listener.  
Instead, add listener method itself should take the priority as an argument.