On 11/01/2018 09:33 PM, Martin Stefanko wrote:Hi all,
in my issue [1] I am facing a decision whether to include CDI stereotype usage also in JAX-RS annotated methods. The problem is that to allow stereotypes to be picked up by CDI they need to be placed on the producer method or field [2] which means they need to be annotated by javax.enterprise.inject.Produces annotation. This annotation already clashes with JAX-RS javax.ws.rs.Produces and additionally impose problems (ambiguous injection) when several methods with the same return type would use stereotypes (I've created simple example at [3]). This is why I want to ask for the community opinion whether or not should RestEasy support stereotypes on JAX-RS methods.
Thank you,Martin Stefanko
Software EngineerJBoss Sustaining Engineering TeamRed Hat
_______________________________________________ resteasy-dev mailing list resteasy-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/resteasy-dev