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:
> 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:
> 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:
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
_____
From: google-guice@googlegroups.com [mailto:google-guice@googlegroups.com]
On Behalf Of Anthony MULLER
Sent: Thursday, July 31, 2008 8:47 PM
To: google-guice@googlegroups.com
Subject: Re: Guice pluggability without OSGi
I was just working on the same idea too! :) Great work !
Can I use your classes freely?
Question about your GUI project: i will be based on Swing?
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:
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-guice@googlegroups.com [mailto:google-guice@googlegroups.com] On Behalf Of Robbie Vanbrabant Sent: Thursday, July 31, 2008 8:51 PM To: google-guice@googlegroups.com Subject: Re: Guice pluggability without OSGi
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:
> 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-guice@googlegroups.com [mailto: > google-guice@googlegroups.com] *On Behalf Of *Robbie Vanbrabant > *Sent:* Thursday, July 31, 2008 8:51 PM > *To:* google-guice@googlegroups.com > *Subject:* Re: Guice pluggability without OSGi
> On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret < > jfpoilp...@yahoo.fr> wrote:
> 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:
> 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-guice@googlegroups.com [mailto: >> google-guice@googlegroups.com] *On Behalf Of *Robbie Vanbrabant >> *Sent:* Thursday, July 31, 2008 8:51 PM >> *To:* google-guice@googlegroups.com >> *Subject:* Re: Guice pluggability without OSGi
>> On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret < >> jfpoilp...@yahoo.fr> wrote:
>> 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:
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
_____
From: google-guice@googlegroups.com [mailto:google-guice@googlegroups.com] On Behalf Of Anthony MULLER Sent: Thursday, July 31, 2008 9:30 PM To: google-guice@googlegroups.com Subject: Re: Guice pluggability without OSGi
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-guice@googlegroups.com [mailto:google-guice@googlegroups.com] On Behalf Of Robbie Vanbrabant Sent: Thursday, July 31, 2008 8:51 PM
To: google-guice@googlegroups.com Subject: Re: Guice pluggability without OSGi
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:
However, if you look at this link (particulary the comments bellow) it seems
that some members are not really convinced by use of the ServiceLoader and
think that it will be depreciate later...
As for me, it is a simple and efficient way to make modular applications
easily!
> 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
> ------------------------------
> *From:* google-guice@googlegroups.com [mailto:
> google-guice@googlegroups.com] *On Behalf Of *Anthony MULLER
> *Sent:* Thursday, July 31, 2008 9:30 PM
> *To:* google-guice@googlegroups.com
> *Subject:* Re: Guice pluggability without OSGi
> 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-guice@googlegroups.com [mailto:
> google-guice@googlegroups.com] *On Behalf Of *Robbie Vanbrabant
> *Sent:* Thursday, July 31, 2008 8:51 PM
> *To:* google-guice@googlegroups.com
> *Subject:* Re: Guice pluggability without OSGi
> On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret <
> jfpoilp...@yahoo.fr> wrote:
> 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:
> However, if you look at this link (particulary the comments bellow) it
> seems that some members are not really convinced by use of the ServiceLoader
> and think that it will be depreciate later...
> As for me, it is a simple and efficient way to make modular applications
> easily!
>> 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
>> ------------------------------
>> *From:* google-guice@googlegroups.com [mailto:
>> google-guice@googlegroups.com] *On Behalf Of *Anthony MULLER
>> *Sent:* Thursday, July 31, 2008 9:30 PM
>> *To:* google-guice@googlegroups.com
>> *Subject:* Re: Guice pluggability without OSGi
>> 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-guice@googlegroups.com [mailto:
>> google-guice@googlegroups.com] *On Behalf Of *Robbie Vanbrabant
>> *Sent:* Thursday, July 31, 2008 8:51 PM
>> *To:* google-guice@googlegroups.com
>> *Subject:* Re: Guice pluggability without OSGi
>> On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret <
>> jfpoilp...@yahoo.fr> wrote:
>> 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:
JCatapult also does this. I use ASM and search the classpath for packages named "guice" and then load everything from that package that implements Module. The JCatapult code also handles overriding of classes by only loading the leaf nodes of the inheritance graph.
When I was developing it I looked at ServiceLoader, but one of JCatapult's main principles is minimize configuration whenever possible. Therefore, I went with a pure discovery approach.
Feel free to check out the code and grab whatever you need. It is also open source under the ASLv2 (Apahce Source License version 2 ). It is located here:
> 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-guice@googlegroups.com [mailto:google-guice@googlegroups.com > ] On Behalf Of Robbie Vanbrabant > Sent: Thursday, July 31, 2008 8:51 PM > To: google-guice@googlegroups.com > Subject: Re: Guice pluggability without OSGi
> Robbie > On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret <jfpoilp...@yahoo.fr > > wrote: > 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:
> JCatapult also does this. I use ASM and search the classpath for packages > named "guice" and then load everything from that package that implements > Module. The JCatapult code also handles overriding of classes by only > loading the leaf nodes of the inheritance graph. > When I was developing it I looked at ServiceLoader, but one of JCatapult's > main principles is minimize configuration whenever possible. Therefore, I > went with a pure discovery approach.
> Feel free to check out the code and grab whatever you need. It is also open > source under the ASLv2 (Apahce Source License version 2 ). It is located > here:
> On Jul 31, 2008, at 8:25 AM, Jean-Francois Poilpret wrote:
> 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;-)
> Robbie > On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret < > jfpoilp...@yahoo.fr> wrote:
> 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: