Hello,
I have just written a small prototype that enables an application to search dynamically for Guice Modules in plugins (external jars) and create an Injector from these Modules. I’ve put some details on my blog, if someone is interested by this topic:
http://jfpoilpret.blogspot.com/2008/07/dynamically-loading-guice-modules-as.html
Cheers, Jean-Francois
Hi Anthony,
You can freely copy the code from my blog, it is under ASL 2.0 license (like all my Open Source projects).
About Guice-GUI project, yes it is Swing-based (more exactly Swing Application Framework-based).
Cheers
Jean-Francois
Damn! I should have googled that before starting my experiments! I am not using Java 6, but I should have known that anyway. OK, at least it shall be useful to Java 5 users;-)
Cheers, Jean-Francois
From: google...@googlegroups.com [mailto:google...@googlegroups.com] On Behalf Of Robbie Vanbrabant
Sent: Thursday, July 31, 2008 8:51
PM
To: google...@googlegroups.com
Subject: Re: Guice pluggability
without OSGi
Cool! Also note that JDK
6 offers similar functionality with its ServiceLoader: http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
Robbie
Yes,
ASL stands for Apache License.
Checking the link you provided, I actually wonder if this goes as far as my example: I don’t see any way to find out all Guice Modules placed in jars in a directory that is NOT in the classpath… So there may still be room for improvement in Java 6 ServiceLocator?
Cheers, Jean-Francois