rayfarias56 / minrva-estimote-server

The server for the Minrva: Wayfinder app
0 stars 1 forks source link

Utilize Guice Injection #16

Closed rayfarias56 closed 8 years ago

rayfarias56 commented 8 years ago

In order to easily test servlets it'd be nice to inject config and db. Guice has good jersey support and I'm used of it.

rayfarias56 commented 8 years ago

With some research I discovered that Jersey2 and Guice relations are actually not that well supported. There's been some work from Squarespace, but because they rely on reflection it might break with point releases. However, I found out that Jersey exposes HK2 for injections. It's in their documentation and I'll learn to use it and implement.