Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Guice pluggability without OSGi
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  12 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jean-Francois Poilpret  
View profile  
 More options Jul 31 2008, 9:34 am
From: "Jean-Francois Poilpret" <jfpoilp...@yahoo.fr>
Date: Thu, 31 Jul 2008 20:34:03 +0700
Local: Thurs, Jul 31 2008 9:34 am
Subject: Guice pluggability without OSGi

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-modu....
html

Cheers, Jean-Francois


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 9:47 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 15:47:23 +0200
Local: Thurs, Jul 31 2008 9:47 am
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?

Anthony MÜLLER

2008/7/31 Jean-Francois Poilpret <jfpoilp...@yahoo.fr>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robbie Vanbrabant  
View profile  
 More options Jul 31 2008, 9:51 am
From: "Robbie Vanbrabant" <robbie.vanbrab...@gmail.com>
Date: Thu, 31 Jul 2008 15:51:04 +0200
Local: Thurs, Jul 31 2008 9:51 am
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

On Thu, Jul 31, 2008 at 3:34 PM, Jean-Francois Poilpret <jfpoilp...@yahoo.fr


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Francois Poilpret  
View profile  
 More options Jul 31 2008, 10:23 am
From: "Jean-Francois Poilpret" <jfpoilp...@yahoo.fr>
Date: Thu, 31 Jul 2008 21:23:22 +0700
Local: Thurs, Jul 31 2008 10:23 am
Subject: RE: Guice pluggability without OSGi

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

  _____  

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?

Anthony MÜLLER

2008/7/31 Jean-Francois Poilpret <jfpoilp...@yahoo.fr>

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-modu....
html

Cheers, Jean-Francois


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Francois Poilpret  
View profile  
 More options Jul 31 2008, 10:25 am
From: "Jean-Francois Poilpret" <jfpoilp...@yahoo.fr>
Date: Thu, 31 Jul 2008 21:25:37 +0700
Local: Thurs, Jul 31 2008 10:25 am
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

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

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:

http://jfpoilpret.blogspot.com/2008/07/dynamically-loading-guice-modu....
html

Cheers, Jean-Francois


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 10:28 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 16:28:22 +0200
Local: Thurs, Jul 31 2008 10:28 am
Subject: Re: Guice pluggability without OSGi

Sure :)

At least Sun provides ServiceLoader as an external library for Java 5 :)

About ASL, it stands for Apache Licence ?

Anthony

2008/7/31 Jean-Francois Poilpret <jfpoilp...@yahoo.fr>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 10:30 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 16:30:06 +0200
Local: Thurs, Jul 31 2008 10:30 am
Subject: Re: Guice pluggability without OSGi

Interesting link ;)

http://matthiaswessendorf.wordpress.com/2008/01/21/creating-google-gu...

2008/7/31 Anthony MULLER <anthony.mul...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean-Francois Poilpret  
View profile  
 More options Jul 31 2008, 10:58 am
From: "Jean-Francois Poilpret" <jfpoilp...@yahoo.fr>
Date: Thu, 31 Jul 2008 21:58:46 +0700
Local: Thurs, Jul 31 2008 10:58 am
Subject: RE: Guice pluggability without OSGi

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

  _____  

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

Interesting link ;)

http://matthiaswessendorf.wordpress.com/2008/01/21/creating-google-gu...
ules-with-java-6s-serviceloader/

2008/7/31 Anthony MULLER <anthony.mul...@gmail.com>

Sure :)

At least Sun provides ServiceLoader as an external library for Java 5 :)

About ASL, it stands for Apache Licence ?

Anthony

2008/7/31 Jean-Francois Poilpret <jfpoilp...@yahoo.fr>

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

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

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:

http://jfpoilpret.blogspot.com/2008/07/dynamically-loading-guice-modu....
html

Cheers, Jean-Francois


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 11:03 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 17:03:28 +0200
Local: Thurs, Jul 31 2008 11:03 am
Subject: Re: Guice pluggability without OSGi

Oui you're right...

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!

Anthony

2008/7/31 Jean-Francois Poilpret <jfpoilp...@yahoo.fr>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 11:04 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 17:04:07 +0200
Local: Thurs, Jul 31 2008 11:04 am
Subject: Re: Guice pluggability without OSGi

the link

http://www.theserverside.com/news/thread.tss?thread_id=44603

2008/7/31 Anthony MULLER <anthony.mul...@gmail.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Brian Pontarelli  
View profile  
 More options Jul 31 2008, 11:08 am
From: Brian Pontarelli <br...@pontarelli.com>
Date: Thu, 31 Jul 2008 09:08:46 -0600
Local: Thurs, Jul 31 2008 11:08 am
Subject: Re: Guice pluggability without OSGi

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:

http://jcatapult.googlecode.com/svn/jcatapult-core/trunk/src/java/mai...

The actual classpath searching is performed by Java.net Commons  
library. That code is located here:

https://java-net-commons.dev.java.net/source/browse/java-net-commons/...
https://java-net-commons.dev.java.net/source/browse/java-net-commons/...

Let me know if you have questions.

-bp

On Jul 31, 2008, at 8:25 AM, Jean-Francois Poilpret wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony MULLER  
View profile  
 More options Jul 31 2008, 11:15 am
From: "Anthony MULLER" <anthony.mul...@gmail.com>
Date: Thu, 31 Jul 2008 17:15:16 +0200
Local: Thurs, Jul 31 2008 11:15 am
Subject: Re: Guice pluggability without OSGi

Nice! Thanks!

2008/7/31 Brian Pontarelli <br...@pontarelli.com>


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google