title: How do I inject a dependency into a Jersey resource?
body: <p>I'm using Jersey to build a REST API, with Grizzly.  I'm not using any dependency injection framework like Google Guice.</p>
  
  <p>One of the resources needs to retrieve data from a Map in response to a GET request.</p>
  
  <p>I can't figure out how I can inject this Map into the resource, since with Jersey I don't control how the resource is initialized.</p>
  
  <p>I realize I could just declare the Map as static but that seems like a very ugly solution.</p>