Would exposing the ClientInvocation from ClientRequestContextImpl be
acceptable?
Or is it too likely to be modified even to expose there?
If it's okay, I'd be happy to create a PR for it.
On Mon, Dec 17, 2018 at 8:44 AM Michal Szynkiewicz <mszynkie(a)redhat.com>
wrote:
Thanks Michael, unfortunately, the injection doesn't work for
me.
On Fri, Dec 14, 2018 at 4:24 PM Michael Musgrove <mmusgrov(a)redhat.com>
wrote:
> Can you inject an instance of ResourceInfo, something like the following:
>
> @Context
> protected ResourceInfo resourceInfo;
>
> public void filter(ClientRequestContext ctx) throws IOException {
> Method method = resourceInfo.getResourceMethod();
> ...
> }
>
> On Fri, Dec 14, 2018 at 2:37 PM Michal Szynkiewicz <mszynkie(a)redhat.com>
> wrote:
>
>> Hi,
>>
>> MicroProfile Rest Client 1.2 requires that the method that is handling
>> the request is available under a specific key in the ClientRequestContext
>> [1].
>>
>> I'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.
>>
>> Could you give me some tip how to implement it better, if possible?
>>
>> Thanks,
>> Michał
>>
>> [1]
>>
https://github.com/eclipse/microprofile-rest-client/blob/857ce67949a1e846...
>>
>> [2]
>>
https://github.com/michalszynkiewicz/smallrye-rest-client/blob/99e05e9793...
>> _______________________________________________
>> resteasy-dev mailing list
>> resteasy-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/resteasy-dev
>>
>
>
> --
> Michael Musgrove
> mmusgrov(a)redhat.com
>
> JBoss, by Red Hat
> Registered Address: Red Hat Ltd, 6700 Cork Airport Business Park, Kinsale
> Road, Co. Cork.
> Registered in the Companies Registration Office, Parnell House, 14
> Parnell Square, Dublin 1, Ireland, No.304873
> Directors:Michael Cunningham (USA), Vicky Wiseman (USA), Michael O'Neill,
> Keith Phelan, Matt Parson (USA)
>
>
>