Sorry, can you give an example code sniplet of the kind of code it picks up?
Wouldn't Spring pick up fields annotated with Spring-annotations anyway?
Gili
Martin Grotzke-2 wrote:
>
> Hi Gili,
>
> On Wed, 2008-10-01 at 22:40 -0700, Gili wrote:
>> Paul,
>>
>> I'm trying to use the Spring-Jersey bridge as a model for the Guice
>> one...
>>
>> It looks like SpringResourceProvider.java:194 falls back on Jersey's
>> built-in resource providers whenever possible. Why is that? Why doesn't
>> it
>> simply use Spring to inject all resources?
> Be aware that there's a difference between SpringResourceProvider and
> the SpringComponentProvider (SpringServlet.SpringComponentProvider).
>
> The SpringResourceProvider is just there to read the scope
> (Request/Singleton) from spring annotations if there's no jersey
> lifecycle annotation present.
>
> For integrating guice the SpringServlet/SpringComponentProvider should
> be the starting point.
>
> Cheers,
> Martin
>
>
>>
>> Thanks,
>> Gili
>
>
>
--
View this message in context: http://n2.nabble.com/Using-Guice-with-JAX-RS-tp1127230p1133877.html
Sent from the Jersey mailing list archive at Nabble.com.