Hi,
I'm just wondering about a couple of things...
Paul S. wrote:
http://blogs.sun.com/sandoz/entry/guice_2_0_is_almost
back in 2009:
and linked to it in response to
http://jersey.576304.n2.nabble.com/Can-QueryParam-be-used-in-resource-constructor-along-with-Guice-injection-td4488885.html
The gist of those communications as I understand them was that ycx4321
said "I would like constructor injection" followed by Paul S. saying
"I prefer constructor injection, too, but..."
From a testability perspective, I agree ... plus, I have always mildly
disliked the concept of injecting into private data members.
I like guice, but part of why I looked at it was because, at the time,
I was only aware of old-style spring bindings via xml files, which I
really didn't want. Now it seems that's no longer necessary. I was
tempted to say heck with it, I'll use jersey-spring instead of
jersey-guice -- but there are still some things I like better about
guice, and there's also the appearance that jersey and guice are
integrated and work together a little more easily. (agree or
disagree?)
The constructor injection thing isn't by any means a deal breaker, but
I'm wondering if the situation has changed since Paul wrote that in
Aug 2009.
--Chris