I would like to use Google Guice (2.0 or 3.0, it does not matter) for my Netbeans platform project. My project has several Netbeans modules. I managed to use Guice in one Netbeans module, but now I want to embed a dependency on one NBModule on another. Is it possible? I googled a lot and searched netbeans and guice mailing lists, but nobody seems to have ever tried this.
I don't want to use the Lookup API for this, because I really need Injection Dependency for better testing.
Does anyone have any experience?
Edit: To be more specific: can I use the same injector for all NBModules or do I need to create an injector for each module?
source
share