Fwd: SPI to add JAX-RS annotations dynamically
by Alessio Soldano
Forwarding to the list :-)
---------- Forwarded message ----------
From: Alessio Soldano <asoldano(a)redhat.com>
Date: Wed, Sep 27, 2017 at 10:24 PM
Subject: Re: [resteasy-dev] SPI to add JAX-RS annotations dynamically
To: Christian Kaltepoth <christian(a)kaltepoth.de>
Hi Christian,
On Wed, Sep 27, 2017 at 9:19 PM, Christian Kaltepoth <christian(a)kaltepoth.de
> wrote:
>
> sorry for the delayed response. I agree that if some SPI would allow to
> modify the builders, it should be done before the resource is registered in
> the resource factory. Do you think such a SPI would be useful for others?
>
Probably yes, but your scenario might even be enough to justify it.
I would be happy to contribute some code if it improves portability between
> RESTEasy and the MVC RI.
>
Sure, feel free to work on that and send a PR.
> Thanks for pointing me to the resteasy-cdi integration. I'll have a deeper
> look at it in the next days.
>
OK, good, I hope that can offer some idea for integrating.
Cheers
Alessio
6 years, 8 months
Allow JAX-RS annotations in @Stereotype
by Martin Stefanko
Hi team,
for my issue [1] I am facing a few problems with which I would be glad if
somebody could help. As resteasy contains resteasy-cdi module, I am able to
manually collect JAX-RS related annotations from stereotypes by listening
for the Weld CDI events. My problem is how to propagate this information to
the processing of the request in the resteasy-jaxrs module. As I discussed
with Alessio it would be better to keep all CDI related code in the
resteasy-cdi module so I am searching for a way to substitute my classes
from resteasy-cdi module to the resteasy-jaxrs module. This will need to go
as deep as ResourceBuilder class as that's where the annotations are
processed but I don't see any way how to move the execution of the request
from resteasy-jaxrs.
Thank you for any ideas.
[1] https://issues.jboss.org/browse/WFLY-8136
Martin Stefanko
Associate Software Engineer
JBoss Sustaining Engineering Team
Red Hat Czech s.r.o.
6 years, 11 months