Eclipse 4 (e4) Tutorial Part 4 - Dependency Injection Basics

September 18, 2012 | 2 min Read

This tutorial series introduces the new features and concepts of the Eclipse 4 Application Platform, as well as interesting tools and technologies related to the current major release of Eclipse. In the first three parts of this series we covered the following topics: the core of every Eclipse 4 application, the application model; the connection of this model with actual implementations; and the options for modularization of the model. In most of the programming examples provided, we implicitly used a further innovation of Eclipse 4: dependency injection (DI). DI plays a central role in Eclipse 4, reason enough to devote a whole tutorial to this. This tutorial describes:

  • Which objects can be injected.
  • How the Eclipse Context works.
  • Which annotations can be used to influence the injection.
  • How the Eclipse Context can be extended.
  • How the injection can be triggered manually.

You will find this tutorial and many more on our new tutorial site on developers.eclipsesource.com.

All parts of this tutorial are also available as a downloadable PDF. If you are interested in a German e4 tutorial, I would like to mention that Marc Teufel and me will publish a book about e4.

Additionally, I am writing a series in the German “Eclipse Magazin”

For more information, contact us:

Join me on Google+

@JonasHelming folgen //

Jonas Helming and Maximilian Koegel

EclipseSource Munich leads

Author: Jonas Helming

Jonas Helming

Jonas Helming

Jonas Helming is co-lead for the EclipseSource team and the project lead of the Eclipse EMF Client Platform and the EMFStore project. He works as an Eclipse Consultant …