You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andy McCright (Jira)" <ji...@apache.org> on 2020/06/15 16:45:00 UTC
[jira] [Created] (CXF-8304) MP Rest Client 2.0: Use CDI-managed
providers
Andy McCright created CXF-8304:
----------------------------------
Summary: MP Rest Client 2.0: Use CDI-managed providers
Key: CXF-8304
URL: https://issues.apache.org/jira/browse/CXF-8304
Project: CXF
Issue Type: Sub-task
Components: MicroProfile
Reporter: Andy McCright
Assignee: Andy McCright
Fix For: 3.4.0
In MP Rest Client [issue 256|https://github.com/eclipse/microprofile-rest-client/issues/256] (implemented by [PR 277|https://github.com/eclipse/microprofile-rest-client/pull/277], implementations are required to check (1) if CDI exists in the runtime and (2) if CDI is managing an instance of the provider class specified by the client interface - and if so, then use the CDI-managed provider instead of creating one using newInstance(). This applies for cases where the provider _class_ is registered, not a pre-created _instance_ of the provider.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)