Eclipse 4 Context Functions

1,938 views

Published on

The talk about context functions I gave at the EclipseCon Europe 2012 in Ludwigsburg.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,938
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Eclipse 4 Context Functions

  1. 1. Eclipse 4 Context Functions Sopot Çela
  2. 2. About MeWork for the InternationalCriminal InvestigativeTraining Assistance Program(ICITAP)Independent Eclipse e4committerPlatform/UI contributorTweet at @smcela
  3. 3. Eclipse 4 context KEYS VALUESEPartService PartServiceImplEModelService ModelServiceImplMyCoolService CoolServiceImpl
  4. 4. Eclipse 4 context hierarchyOSGi MApplication MWindow MWindow MPart MPart MPart @Inject EPartSer vice
  5. 5. Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl
  6. 6. Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl
  7. 7. Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl IN A GIVEN CONTEXT Impl = f(context, Interface) Context Function
  8. 8. The guts of EclipseA simple context function This is how you get your @Inject EHandlerService
  9. 9. The guts of EclipseA simple context function This is how you get your @Inject EHandlerService
  10. 10. The curious case of EPartService @Inject EPartService
  11. 11. DEMO 1IEmergencyService with only one method dispatch() Police implementation dispatches police car Ambulance implementation dispatches ambulance Firefighters implementation dispatches firefighters
  12. 12. DEMO 2IConverterService with one methodconvertToFahrenheitTwo implementations call one different remote webservice each to do the conversionThe context function will Distribute the calls evenly ( mini load balancer ) Pick the other if one is down ( mini fail over)
  13. 13. AcknowledgmentThe JavaFX renderers provided by Tom Schindl from his efxclipse project.

×