users@jersey.java.net

Re: [Jersey] Guice 2.0 support now available

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 14 Apr 2009 13:03:32 +0200

On Apr 14, 2009, at 12:52 PM, James Strachan wrote:

> 2009/4/10 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>> Hi,
>>
>> Guice 2.0 support is now available:
>>
>> https://jersey.dev.java.net/nonav/apidocs/1.0.3-SNAPSHOT/contribs/jersey-guice/index.html
>>
>> http://download.java.net/maven/2/com/sun/jersey/contribs/jersey-guice/1.0.3-SNAPSHOT/jersey-guice-1.0.3-SNAPSHOT.pom
>>
>> It is currently depending on Guice artifacts at the maven repo:
>>
>> http://guice-maven.googlecode.com/svn/trunk
>>
>> But i plan to switch things over to GuiceFruit:
>>
>> http://code.google.com/p/guiceyfruit/
>>
>> when the next release occurs. This will have the added benefit that
>> one can
>> avail of EE-supported annotations like @Resource and
>> @PostConstruct/_at_PreDestroy for Guice-managed components.
>
> 2.0-beta-6 is now out for GuiceyFruit
> http://code.google.com/p/guiceyfruit/wiki/Download
>
> Its also got support for Spring @Autowired, @Qualifier annotations and
> JPA @PersistenceContext too :)
> http://code.google.com/p/guiceyfruit/wiki/Annotations
>

Great.

How can i modify the dependencies in jersey-guice pom to depend on
guice distributed with GuiceyFruit?

http://download.java.net/maven/2/com/sun/jersey/contribs/jersey-guice/1.0.3-SNAPSHOT/jersey-guice-1.0.3-SNAPSHOT.pom

I checked but i cannot find any guice-servlet module for beta 6.

Thanks,
Paul.