2. About Me
Work for the International
Criminal Investigative
Training Assistance Program
(ICITAP)
Independent Eclipse e4
committer
Platform/UI contributor
Tweet at @smcela
5. Making a point
@Inject EPartService will get you a certain service implementation
PartServiceImpl
6. Making a point
@Inject EPartService will get you a certain service implementation
PartServiceImpl
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. The guts of Eclipse
A simple context function
This is how you get your
@Inject EHandlerService
9. The guts of Eclipse
A simple context function
This is how you get your
@Inject EHandlerService
11. DEMO 1
IEmergencyService with only one method dispatch()
Police implementation dispatches police car
Ambulance implementation dispatches ambulance
Firefighters implementation dispatches firefighters
12. DEMO 2
IConverterService with one method
convertToFahrenheit
Two implementations call one different remote web
service each to do the conversion
The context function will
Distribute the calls evenly ( mini load balancer )
Pick the other if one is down ( mini fail over)