<div dir="ltr">Hi<div><br></div><div>Extensions that observe using @WithAnnotations are not notified with implementing classes for annotated interfaces. </div><div><br></div><div>Not sure if this is intended - the javadoc seems pretty clear on that the following example should work.</div>
<div><br></div><div>@Path("/service")<br></div><div>public interface Service {</div><div> @POST</div><div> public void execute();</div><div>}</div><div><br></div><div>public ServiceEndpoint implements Service {</div>
<div> public void execute() { ... }</div><div>}</div><div><br></div><div>public class JaxrsExtension implements Extension {</div><div><div><div><br></div><div><X> void storeJaxrsResourceClasses(@Observes @WithAnnotations({Path.class, Provider.class}) ProcessAnnotatedType<X> pat) {</div>
<div> AnnotatedType<X> type = pat.getAnnotatedType();</div><div> if (!type.getJavaClass().isInterface()) {</div><div> // want to manage the ServiceEndpoint here</div><div> }<br></div><div> }</div></div>
</div><div>}<br></div><div><div><br></div></div><div>Cheers,</div><div>-Kristoffer</div></div>