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

ReqCycle / developer resources / Services

Services

ReqCycle uses Eclipse E4 Injection services (https://wiki.eclipse.org/Eclipse4/RCP/Dependency_Injection) To inject services it is possible to use :

  • @javax.inject.Inject annotation. To be injected a class shall be constructed by the injection framework or by a ReqCycle service (be careful in some cases @Inject keeps listeners to the element and can imply some perfomance issues)
  • org.polarsys.reqcycle.utils.inject.ZigguratInject.make method which creates an instance of the desired services.

To declare a service you have to register your service and its implementation through org.polarsys.reqcycle.core.binding extension point

Back to the top