users@jersey.java.net

Re: [Jersey] Guice 2.0 support now available

From: James Strachan <james.strachan_at_gmail.com>
Date: Tue, 14 Apr 2009 12:21:59 +0100

2009/4/14 Paul Sandoz <Paul.Sandoz_at_sun.com>:
>
> 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.

Ah - I'd missed that when I switched from using the Guice Ant build of
the jars from a hacked maven build. It should be there now

http://guiceyfruit.googlecode.com/svn/repo/releases/org/guiceyfruit/guice-servlet/2.0-beta-6/

-- 
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://fusesource.com/