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