I want to use the Multibinding feature of Google Guice. I searched the docs and googled for it, but I did not find any answer to this question:
Is it possible to define an order of the elements in an injected Collection (e.g. List) ? And if, how do I achieve this?
Thanks!
Dominik Obermaier
--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
Jesse, thanks for the hint! Since the registering happens in the same module, this is a suitable solution for me!
I thinks this tip should be documented in the Wiki. (Of course) I have no rights to edit the Multibinding Wiki Page. Perhaps one of the people with edit rights could do this :)
Thanks again!
Dominik
On Jun 14, 2011, at 5:04 PM, je...@swank.ca wrote:
> FYI, for multibindings registered in the same module, the order in the
> module will equal the order in the set.
>