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

Support constructor injection of JAX-RS Application

Attach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment