Dependency injection in e4 - in Intro.

2,154 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,154
On SlideShare
0
From Embeds
0
Number of Embeds
30
Actions
Shares
0
Downloads
10
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dependency injection in e4 - in Intro.

  1. 1. Dependency Injection in e4 Talk by, Chetan Kumar K, Robert Bosch Engineering and Business Solutions (RBEI), Bangalore.
  2. 2. What’s in store ?? <ul><li>“ Dependency Injection (DI)” refresher </li></ul><ul><li>How DI in e4 ?? </li></ul><ul><li>Good news </li></ul><ul><li>Bad news </li></ul><ul><li>Important Links </li></ul>
  3. 3. “ Dependency Injection (DI)” refresher Tight coupling
  4. 4. Example… now with DI <<creates>> XYZ Application
  5. 5. … sample code, without DI … sample code, with DI
  6. 6. Good News… <ul><li>Implementation is “cohesive” or de-coupled. </li></ul><ul><li>Since units are decoupled from each other, unit testing is easier </li></ul><ul><li>Framework provides Dependency Injection. </li></ul><ul><li>Can have multiple implementations of a single service active. Injecting correct impl is framework responsibility. </li></ul>… and Bad news <ul><li>Have to remember newer annotations </li></ul><ul><li>Tooling support should still evolve </li></ul><ul><li>Re-factoring the code </li></ul><ul><li>Code is not that readable </li></ul>
  7. 7. FAQs <ul><li>Am I supposed to remember all these DI related annotations ?? </li></ul><ul><li>Is there tooling and re-factoring support ?? </li></ul><ul><li>Yes. Initial implementation is ready . </li></ul><ul><li>I don’t like DI. can I still access stuff the old way ?? </li></ul><ul><li>Yes. Helper classes will be provided which inturn use DI. Check this . </li></ul><ul><li>Is there documentation available ?? </li></ul><ul><li>Do I have access to helper classes that abstract DI complexities from me ?? </li></ul><ul><li>Yes. Take a look at Bug 302824 for a huge discussion. </li></ul>
  8. 8. Important links and References <ul><li>Martin Fowler’s article on Dependency Injection ( http://martinfowler.com/articles/injection.html ) </li></ul><ul><li>Tom Schindl’s web-log </li></ul><ul><li>( http://tomsondev.bestsolution.at/2010/02/21/e4-dependency-injection-tooling/ ) </li></ul><ul><li>Tonny Madsen’s web-log </li></ul><ul><li>( http://blog.rcp-company.com/search/label/dependency%20injection ) </li></ul><ul><li>Bug 302824 on Support for easy access to workbench services without DI ( https://bugs.eclipse.org/bugs/show_bug.cgi?id=302824 ) </li></ul><ul><li>Wikipedia link for Dependency Injection ( http:// en.wikipedia.org/wiki/Dependency_injection ) </li></ul>
  9. 9. A mind once stretched by a thought never regains its original dimensions.

×