Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1257

[GUICE] Any generic class bound with @Provider not registered

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.14.Final
    • 3.0.13.Final
    • jaxrs
    • None

      For guice, if you want to bind() a generic type you have to use the
      TypeLiteral class. The type however is not of Class and the registration of class's annotated with
      @Provider were being ommited.

      see: https://github.com/google/guice/wiki/FrequentlyAskedQuestions#how-to-inject-class-with-generic-type

      PR: https://github.com/resteasy/Resteasy/pull/693

              patriot1burke@gmail.com Bill Burke (Inactive)
              fzakaria Farid Zakaria (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: