<div dir="ltr">Would exposing the ClientInvocation from ClientRequestContextImpl be acceptable?<div>Or is it too likely to be modified even to expose there?</div><div>If it&#39;s okay, I&#39;d be happy to create a PR for it.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 17, 2018 at 8:44 AM Michal Szynkiewicz &lt;<a href="mailto:mszynkie@redhat.com">mszynkie@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Michael, unfortunately, the injection doesn&#39;t work for me.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 14, 2018 at 4:24 PM Michael Musgrove &lt;<a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div>Can you inject an instance of ResourceInfo, something like the following:</div><div><br></div><div>@Context</div><div>protected ResourceInfo resourceInfo;</div><div><br></div><div><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">public</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"> </span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">void</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"> </span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-en" style="box-sizing:border-box;color:rgb(111,66,193);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">filter</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">(</span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-smi" style="box-sizing:border-box;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">ClientRequestContext</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"> </span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-v" style="box-sizing:border-box;color:rgb(227,98,9);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">ctx</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">) </span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-k" style="box-sizing:border-box;color:rgb(215,58,73);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">throws</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"> </span><span class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail-pl-smi" style="box-sizing:border-box;color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">IOException</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,&quot;Liberation Mono&quot;,Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap"> {</span></div><div><span style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">    Method method = </span><span style="font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt;color:rgb(102,14,122);font-weight:bold">resourceInfo</span><span style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">.getResourceMethod();</span></div><div><span style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">    ...</span></div><div><span style="color:rgb(0,0,0);font-family:&quot;DejaVu Sans Mono&quot;;font-size:9pt">}</span></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Dec 14, 2018 at 2:37 PM Michal Szynkiewicz &lt;<a href="mailto:mszynkie@redhat.com" target="_blank">mszynkie@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>MicroProfile Rest Client 1.2 requires that the method that is handling the request is available under a specific key in the ClientRequestContext [1].</div><div><br></div><div>I&#39;ve been struggling to find an elegant way of implementing it in SmallRye. Currently, I have it working with a filter and digging out the ClientInvocation from ClientRequestContextImpl [2] but would rather not use reflection for that.</div><div><br></div><div>Could you give me some tip how to implement it better, if possible?</div><div><br></div><div>Thanks,</div><div>Michał</div><div><br></div><div>[1] <a href="https://github.com/eclipse/microprofile-rest-client/blob/857ce67949a1e84600e5ffa2dfc80571465aa31a/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/providers/InvokedMethodRequestFilter.java#L36" target="_blank">https://github.com/eclipse/microprofile-rest-client/blob/857ce67949a1e84600e5ffa2dfc80571465aa31a/tck/src/main/java/org/eclipse/microprofile/rest/client/tck/providers/InvokedMethodRequestFilter.java#L36</a></div><div><br></div><div>[2] <a href="https://github.com/michalszynkiewicz/smallrye-rest-client/blob/99e05e97932e5b53bb4161594950c3ef7dba9a2d/implementation/src/main/java/io/smallrye/restclient/MethodInjectionFilter.java#L34-L49" target="_blank">https://github.com/michalszynkiewicz/smallrye-rest-client/blob/99e05e97932e5b53bb4161594950c3ef7dba9a2d/implementation/src/main/java/io/smallrye/restclient/MethodInjectionFilter.java#L34-L49</a><br></div></div></div></div>
_______________________________________________<br>
resteasy-dev mailing list<br>
<a href="mailto:resteasy-dev@lists.jboss.org" target="_blank">resteasy-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/resteasy-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/resteasy-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-986470718468045556gmail-m_-5590725028488615327gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Michael Musgrove</span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><a href="mailto:mmusgrov@redhat.com" target="_blank">mmusgrov@redhat.com</a></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">JBoss, by Red Hat</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale Road, Co. Cork.</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Registered in the Companies Registration Office, Parnell House, 14 Parnell Square, Dublin 1, Ireland, No.304873</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px"><span style="color:rgb(0,0,0);font-family:Helvetica;font-size:12px">Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O&#39;Neill, Keith Phelan, Matt Parson (USA)</span><br></div><div><br><br></div></div></div></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div>