hi all
i'm pretty much new in guice, and now i have some questions.
i'm working on an RCP app (OSGi) and i'm using guice and peaberry
my activator is like this
Module mod = new AbstractModule() {

                        @Override
                        protected void configure() {
                                install(Peaberry.osgiModule(context));
                        }
                };

                injector = Guice.createInjector(mod, new GermantechModulo());

and this germantechmodulo


public class GermantechModulo extends AbstractModule {

        @Override
        protected void configure() {
                bind(DAO.class).to(DAOImpl.class).in(Scopes.SINGLETON);
        }

        @Provides
        public EntityManager getEntityManger(){
                return ECFEntityManager.createEntityManager();
        }

as you can see, in my 'configure()' I bind my dao (interface) to my
daoimpl...but i'll have a LOT of daos and repositories.
is there a way to tell guice to 'auto bind' these classes?
thanks a lot

-- 
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.

Reply via email to