Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » How to retrieve/inject a list of services
How to retrieve/inject a list of services [message #722419] Mon, 05 September 2011 14:16 Go to previous message
Hannes Niederhausen is currently offline Hannes Niederhausen
Messages: 14
Registered: July 2009
Junior Member
Hi,

I use services to implement extensions to my domain model. All extensions implement the same interface. The question is, how can I retrieve all the implementations?

I tried the @Inject annotation with a list/array of my interface but it didn't work.

Then I tried the get method of the IEclipseContext but also got only one instance.

Funny thing: if I inject a single instance via annotation and retrieve another instance using the context I get two different implementations.

Any hints or is just not possible right now?

Best regards and thanks in advance
Hannes

[Updated on: Mon, 05 September 2011 14:26]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic:Ant Script for eclipse e4 application
Next Topic:Disable drag and drop to detached window?
Goto Forum:
  


Current Time: Fri May 24 19:34:25 EDT 2013

Powered by FUDForum. Page generated in 0.01555 seconds