Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rowanhill opened this issue Jan 4, 2014 · 0 comments

Comments

@rowanhill
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant