Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Declarative Service in a class created by eclipse extension point
Declarative Service in a class created by eclipse extension point [message #534625] Wed, 19 May 2010 16:40 Go to next message
luciano is currently offline lucianoFriend
Messages: 16
Registered: July 2009
Junior Member
Hi

in my eclipse rcp application, I would like to use an osgi service via declarative service in a wizard. therefore, I implemented the wizard as my component class referencing the desired service. as the wizard is added via the standard eclipse extension point, this construction somehow does not work.

what is the best design pattern for such a case?

Thanks in advance,
Luzi
Re: Declarative Service in a class created by eclipse extension point [message #534737 is a reply to message #534625] Thu, 20 May 2010 08:07 Go to previous message
Stefan   is currently offline Stefan Friend
Messages: 316
Registered: July 2009
Senior Member
Hi,

afaik there's a possibilty to instruct the ExtensionRegistry to not
create the instances itself but let the contributor do this using a
factory method. You could use this mechanism to return the component
created by EquinoxDS in your wizard contribution.

Martin Lippert wrote a nice article with same sample code in how to let
Spring create RCP Views:
http://martinlippert.blogspot.com/2008/05/dependency-injecti on-for-extensions.html

Maybe this helps,
Regards,
Stefan.


luciano schrieb:
> Hi
>
> in my eclipse rcp application, I would like to use an osgi service via
> declarative service in a wizard. therefore, I implemented the wizard as
> my component class referencing the desired service. as the wizard is
> added via the standard eclipse extension point, this construction
> somehow does not work.
>
> what is the best design pattern for such a case?
>
> Thanks in advance,
> Luzi
Previous Topic:Revert fails, artifact file not found
Next Topic:Problems with headless build on 3.5
Goto Forum:
  


Current Time: Thu Sep 19 07:44:20 GMT 2024

Powered by FUDForum. Page generated in 0.03299 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top