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

Support constructor injection of JAX-RS Application

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.0.7, 8.0.8
    • Component/s: TomEE Core Server
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: