Ok thanks. 2010/6/30 Fred Faber <[email protected]>
> That's a no-go...bindings in an injector are final. You'd need to > _not_ have those bindings in the parent injector, and then create a > child injector each time you wanted to use them. Which can be > expensive. > > On Wed, Jun 30, 2010 at 3:25 AM, nino martinez wael > <[email protected]> wrote: > > Okay, great. But what about modifying existing bindings ? > > > > 2010/6/29 Fred Faber <[email protected]> > >> > >> You can create a childInjector with additional bindings (though none > >> can clash with the parent injector). This enables installation of > >> additional modules which will augment the set of bindings that exist > >> in the parent injector. > >> > >> Injector childInjector = parentInjector.createChildInjector(new > >> OtherModule()); > >> > >> -Fred > >> > >> On Tue, Jun 29, 2010 at 3:44 AM, nino martinez wael > >> <[email protected]> wrote: > >> > Hi > >> > > >> > Im wondering if there is a way to install modules, during an > application > >> > lifecycle? I guess it would also require a way to uninstall a module.. > >> > Something similar to OSGI? > >> > > >> > It's because I have an application that will have a "driver" concept > >> > where a > >> > driver has some metadata and offers a guice module.. Or is there a > >> > better > >> > way todo something like drivers with guice? > >> > > >> > > >> > regards Nino > >> > > >> > -- > >> > 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]<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]<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]<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.
