How to retrieve/inject a list of services [message #722419] |
Mon, 05 September 2011 18:16 |
Hannes Niederhausen Messages: 18 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 18:26] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds