This should work. The only thing that could cause it to not work is if OneOfEachAnnotation has @Singleton in it, or if there's a separate binding statement of bind(OneOfEachAnnotation.class).in(Singleton.class).
sam On Thu, Aug 18, 2011 at 1:28 PM, glenviewjeff <[email protected]>wrote: > Sorry, I made a typo in the binding lines. They should read: > > bind(OneOfEachAnnotation.class).annotatedWith(A.class).to(OneOfEachAnnotation.class).in(Singleton.class); > bind(OneOfEachAnnotation.class).annotatedWith(B.class).to(OneOfEachAnnotation.class).in(Singleton.class); > > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/google-guice/-/XrKCkJP9QVEJ. > > 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.
