You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (Jira)" <ji...@apache.org> on 2021/04/07 04:30:00 UTC

[jira] [Created] (TOMEE-2995) Support constructor injection of JAX-RS Application

David Blevins created TOMEE-2995:
------------------------------------

             Summary: Support constructor injection of JAX-RS Application 
                 Key: TOMEE-2995
                 URL: https://issues.apache.org/jira/browse/TOMEE-2995
             Project: TomEE
          Issue Type: Improvement
          Components: TomEE Core Server
            Reporter: David Blevins
            Assignee: David Blevins
             Fix For: 8.0.7


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

 
{code:java}
public StringReader(@Context HttpHeaders headers, @Context UriInfo info,
 @Context Application application) {
 super();
 this.headers = headers;
 this.info = info;
 this.application = application;
} 
{code}
This is leveraged in TCK test
{code:java}
com/sun/ts/tests/jaxrs/spec/provider/visibility{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)