title: What is replacement of com.sun.jersey.api.core.InjectParam in Jersey2
body: <p>I am migrating a project from Jersey 1.8 to 2.23.2.I have found following replacements till now :</p>
  
  <p>In RestService :</p>
  
  <pre><code>1)com.sun.jersey.core.header.ContentDisposition to org.glassfish.jersey.media.multipart.ContentDisposition
  2)com.sun.jersey.multipart.FormDataBodyPart     to org.glassfish.jersey.media.multipart.FormDataBodyPart
  3)com.sun.jersey.multipart.FormDataMultiPart    to org.glassfish.jersey.media.multipart.FormDataMultiPart
  </code></pre>
  
  <p>In Web.xml :</p>
  
  <pre><code>1)com.sun.jersey.spi.spring.container.servlet.SpringServlet to org.glassfish.jersey.servlet.ServletContainer
  2)com.sun.jersey.config.property.packages                   to jersey.config.server.provider.packages
  3)com.sun.jersey.api.json.POJOMappingFeature                to org.glassfish.jersey.jackson.JacksonFeature
  </code></pre>
  
  <p>However I am not able to find how can I achieve dependency injection with jersey2.Earlier we were using com.sun.jersey.api.core.InjectParam like below :</p>
  
  <pre><code>public class AuthFilter implements Filter {
  
     /*@InjectParam
      private SomeService someService;*/
  }
  </code></pre>
  
  <p>Can anyone please suggest ,how this can be done in Jersey2 in simplest way.</p>
  
  <p>Thanks in advance.</p>