<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div><br></div><div>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 <i>javax.enterprise.inject.Produces</i> annotation. This annotation already clashes with JAX-RS <i>javax.ws.rs.Produces </i>and additionally impose problems (ambiguous injection) when several methods with the same return type would use stereotypes (I&#39;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.<div><div dir="ltr" class="gmail-m_8125003233398168600gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>[1] <a href="https://issues.jboss.org/browse/RESTEASY-1821">https://issues.jboss.org/browse/RESTEASY-1821</a></div><div>[2] <a href="http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#declaring_stereotypes" target="_blank">http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#declaring_stereotypes</a></div><div>[3] <a href="https://gist.github.com/xstefank/914614d8250cdc40c0047f55cff484a2">https://gist.github.com/xstefank/914614d8250cdc40c0047f55cff484a2</a></div><div><br></div><div>Thank you,</div><div>Martin Stefanko</div><div><br></div><div>Software Engineer</div><div>JBoss Sustaining Engineering Team</div><div>Red Hat</div></div></div></div></div></div></div></div></div></div></div></div></div>