Have you taken a look at MemberInjectors? I can't 2011/1/15 Willi Schönborn <[email protected]>
> I am looking for some kind of feature i would call "generic" provider. > What i have is a registry where you can register for events using simple > callbacks. > (see > https://github.com/palava/palava-core/blob/master/src/main/java/de/cosmocode/palava/core/Registry.java > ). > This registry provides proxies to simplify event triggering. Now i want to > depend on such proxies, this is why i have a generic binding annotation > @Proxy. > What i don't want is to manually bind every callback type using the proxy > annotation, > because i am lazy. > What i really need is some way to tell the injector: "Hey, whenever someone > asks you > for a dependency annotated with @Proxy, just ask me, i know how to provide > them!" > Is there a way to provide something like that using Guice and/or Guice > extensions? > > Greetings > Willi > > -- > 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]<google-guice%[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.
