See response below:
On Wednesday, June 20, 2012 9:13:56 AM UTC-5, Christian Gruber wrote:
> > uglifying my code by removing annotations from injected parameters,
>
> Which - @Named("foo") and @MyBindingAnnotation, or are you talking about
> something else.
>
Not sure it's that ugly to implement tagging interfaces instead of binding
> annotations (depends on how verbose and how many of these you have to make.
> Matter of style I suppose, but I can see it being worth it if you're
> feeling the pain here.
>
I mean annotations like:
@Inject private ClassA(@Annotation1 InterfaceB b, @Named("name")
InterfaceC c) {}
What you mean by "tagging interfaces"? If there's a better workaround, I'd
like to know. From what I remember, I've been avoiding these through a
number of different ways, either hard coding the implementation classes
(like asking for a UniqueClassB instead of InterfaceB) or using
PrivateModules.
--
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/-/VClZMb97zocJ.
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.