Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2995

Support constructor injection of JAX-RS Application

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 8.0.7, 8.0.8
    • TomEE Core Server
    • None

    Description

      The Application class should be injectable via a constructor.  For example:

       

      public StringReader(@Context HttpHeaders headers, @Context UriInfo info,
       @Context Application application) {
       super();
       this.headers = headers;
       this.info = info;
       this.application = application;
      } 
      

      This is leveraged in TCK test

      com/sun/ts/tests/jaxrs/spec/provider/visibility

       

      Attachments

        Activity

          People

            dblevins David Blevins
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: