Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 354198

Summary: Generalize services infrastructure
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: shenxue.zhou
Version: unspecifiedKeywords: plan
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-08-08 19:05:10 EDT
Sapphire services infrastructure is specific to element instance and property instance contexts. Extending the infrastructure to use services in other contexts is costly and the cost needs to be repeated for every new context. 

The services infrastructure should be re-visited to make it more generic. It should be fairly cheap to define a new context for services.
Comment 1 Konstantin Komissarchik CLA 2011-08-08 19:11:29 EDT
Done.

ModelElementService and ModelPropertyService classes have been collapsed into a single Service class. Similarly, the manner in which services are registered in sapphire-extension.xml has been consolidated into a single construct. The new construct has a new required element called context, which identifies the context to which the defined service is applicable to. The new ServiceContext will make it easier to use services in other contexts.

See the migration guide under Services for more detail on the changes.
Comment 2 Shenxue Zhou CLA 2011-11-28 18:41:41 EST
Verified the unified Service infrastructure.