|
From: Jeff S. <je...@in...> - 2015-04-26 18:22:06
|
Hi all. I've never been very happy with Resteasy's Guice integration because it feels invasive and puts too much gunk in web.xml. It's also backwards; guice should instantiate the resteasy filter, not the other way 'round. The existing approach isn't very "Guicy". I've been using a very simple alternative for several years now and it just occurred to me that I should probably post it back here: https://gist.github.com/stickfigure/5ff4b814b8a08e4e1f57 Basically configure ResteasyBootstrap as normal and Guice as normal. Then use Guice to map this GuiceResteasyFilterDispatcher as any Guice user normally would. Jeff |