Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Riena Getting Started with Wiring

Revision as of 05:22, 30 April 2009 by Unnamed Poltroon (Talk) (New page: == Getting Started with Wiring == Before you continue reading this please read Riena Getting Started with injecting services and extensions. === Use case === Within an Eclipse RCP ba...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Getting Started with Wiring

Before you continue reading this please read Riena Getting Started with injecting services and extensions.

Use case

Within an Eclipse RCP based applications components often start their life cycle because they were contributed as an executable extension org.eclipse.core.runtime.IConfigurationElement.createExecutableExtension(String).

Who or what is responsible for injecting the needed services and/or extensions into these objects? And how does it know what to inject?

Wiring

The answer to this question is Wiring. With the following sentence it is possible to initiate the wiring, i.e. perform all the necessary injections of services and extensions.

Wire.instance(object).andStart(context);

Back to the top