--
You received this message because you are subscribed to the Google Groups "google-guice" group.
To post to this group, send email to google...@googlegroups.com.
To unsubscribe from this group, send email to google-guice...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
> i think i can use some annotation like @Repository or some other
> convention, like spring's ClassPathScanningCandidateComponentProvider
There are a number of extensions / utilities that can scan annotations and bind implementations:
http://groups.google.com/group/google-guice/search?q=annotation+scanner&start=0&scoring=d&
and if you need special scanning it's not hard to write your own using something like http://code.google.com/p/reflections/ as a base - then it's just a matter of calling the Guice SPI just as before, except that this time you're looping over the results and calling "bind( clazz )..." rather than "bind( MyDAO.class )..."
HTH
cheers