dropwizard-spring-annotations icon indicating copy to clipboard operation
dropwizard-spring-annotations copied to clipboard

Question: Search for @Provider & InjectableProvider instead of @DWProvider?

Open rowanhill opened this issue 11 years ago • 0 comments

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

rowanhill avatar Jan 04 '14 14:01 rowanhill