dropwizard-spring-annotations
dropwizard-spring-annotations copied to clipboard
Question: Search for @Provider & InjectableProvider instead of @DWProvider?
Hi,
Second of my two possibly stupid questions, here.
What's the rationale for requiring @DWProvider
? Could AutoWiredService
not just search for classes annotated with @javax.ws.rs.ext.Provider
and/or of type com.sun.jersey.spi.inject.InjectableProvider
, and avoid the need for custom annotations?
(I'm not sure if you'd need to scan for both: as far as I can tell, Jersey doesn't require you to annotate your InjectableProvider
with @Provider
, but doing so seems to be common practice - I'm possibly missing something, though.)
Thanks, Rowan