You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Richard Zowalla (Jira)" <ji...@apache.org> on 2021/05/03 08:43:00 UTC

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

     [ https://issues.apache.org/jira/browse/TOMEE-2995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Zowalla resolved TOMEE-2995.
------------------------------------
    Resolution: Fixed

> 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
>            Priority: Major
>             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)