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