You can't explicitly define that, because that depends on the non-guaranteed method of module traversal when creating the injector.
Other solutions include: - sorting the collection at its injection point - using a MapBinder and defining a sort order on the keys of the map Fred On Tue, Jun 14, 2011 at 9:52 AM, Dominik Obermaier < [email protected]> wrote: > Hi, > > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
