It's very unlikely to change in future versions. We'd break all our servers if we did. I think the more likely fix is that we document it.
On Mon, Mar 24, 2014 at 11:37 AM, Stephan Classen <[email protected]> wrote: > yes we found it to be deterministic. > but we don't want to relay on some undocumented feature of Guice (which > may change its behavior in future versions). > > so if there is no guarantee it looks like we have to find a way to bind > all interceptors in a single call. > > > > On 03/24/2014 04:33 PM, Sam Berlin wrote: > > I don't think it's documented anywhere, but it is deterministic. I > recommend writing a test to ensure it stays the way you want it. > > sam > > > On Mon, Mar 24, 2014 at 11:32 AM, Stephan Classen <[email protected]>wrote: > >> So you say guice does not make any statement about the order of >> interceptors if they are not bound within the same call to bindInterceptor? >> >> >> >> >> On 03/24/2014 04:26 PM, Robert Voliva wrote: >> >> What if the map key is the priority order? >> >> >> On Mon, Mar 24, 2014 at 10:09 AM, Stephan Classen <[email protected]>wrote: >> >>> For me set and map do not have a guaranteed order. so i don't think the >>> outcome of this approach is what i hope for. >>> >>> >>> >>> >>> On 03/24/2014 04:02 PM, Robert Voliva wrote: >>> >>> Could you use a SetBinder/MapBinder to modularize your interceptors, >>> then inject the Set/Map into a "main" interceptor using: >>> >>> https://code.google.com/p/google-guice/wiki/AOP#Injecting_Interceptors >>> >>> >>> >>> On Mon, Mar 24, 2014 at 8:59 AM, Stephan Classen <[email protected]>wrote: >>> >>>> Ok, I have to be more specific :) >>>> >>>> The application is modular. So the different interceptors are located >>>> in different modules. >>>> Therefore they are not bound in a single place. Rather each module >>>> binds the interceptor it knows about. >>>> >>>> At startup of the application it is decided which modules to load (and >>>> consequently contribute to the injector) >>>> and which not. >>>> >>>> >>>> >>>> >>>> >>>> On 03/24/2014 02:15 PM, Robert Voliva wrote: >>>> >>>> >>>> https://google-guice.googlecode.com/git/javadoc/com/google/inject/Binder.html >>>> >>>> Checkout the Javadoc for the bindInterceptor method. >>>> >>>> >>>> On Mon, Mar 24, 2014 at 3:13 AM, Stephan Classen <[email protected]>wrote: >>>> >>>>> Hi >>>>> >>>>> In a project we need the interceptors of a method to be in a specific >>>>> order. >>>>> Does Guice make any statement about the order in which the >>>>> interceptors are executed? >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "google-guice" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To post to this group, send email to [email protected]. >>>>> Visit this group at http://groups.google.com/group/google-guice. >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "google-guice" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/google-guice. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "google-guice" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/google-guice. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "google-guice" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/google-guice. >>> For more options, visit https://groups.google.com/d/optout. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "google-guice" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/google-guice. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-guice. >> For more options, visit https://groups.google.com/d/optout. >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/google-guice. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/google-guice. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/d/optout.
