Is there any way to (in guice 3): 1. Bind all classes annotated with a particular annotation to e.g. Singleton. E.g. something like "bind(Matchers.annotatedWith(DAO.class)).in(Singleton.class);"
2. Add all classes annotated with a particular annotation to a Multibinder. E.g something like "internalServices.addBinding().to(Matchers.annotatedWith(DAO.class)).in(Singleton.class);" I know that the Matcher is ment for interceptions - but I'm looking for something similar when binding. This would clean up my config, allowing me to annotate my DAOs, services, etc. (instead of declaring them). I think Spring allows this fasion of injection. Regards, Lars -- 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.
