• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Eclipse 4 Context Functions
 

Eclipse 4 Context Functions

on

  • 1,745 views

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

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

Statistics

Views

Total Views
1,745
Views on SlideShare
1,745
Embed Views
0

Actions

Likes
1
Downloads
4
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Eclipse 4 Context Functions Eclipse 4 Context Functions Presentation Transcript

    • Eclipse 4 Context Functions Sopot Çela
    • About MeWork for the InternationalCriminal InvestigativeTraining Assistance Program(ICITAP)Independent Eclipse e4committerPlatform/UI contributorTweet at @smcela
    • Eclipse 4 context KEYS VALUESEPartService PartServiceImplEModelService ModelServiceImplMyCoolService CoolServiceImpl
    • Eclipse 4 context hierarchyOSGi MApplication MWindow MWindow MPart MPart MPart @Inject EPartSer vice
    • Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl
    • Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl
    • Making a point@Inject EPartService will get you a certain service implementation PartServiceImpl IN A GIVEN CONTEXT Impl = f(context, Interface) Context Function
    • The guts of EclipseA simple context function This is how you get your @Inject EHandlerService
    • The guts of EclipseA simple context function This is how you get your @Inject EHandlerService
    • The curious case of EPartService @Inject EPartService
    • DEMO 1IEmergencyService with only one method dispatch() Police implementation dispatches police car Ambulance implementation dispatches ambulance Firefighters implementation dispatches firefighters
    • 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)
    • AcknowledgmentThe JavaFX renderers provided by Tom Schindl from his efxclipse project.