Skip to content

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

@rowanhill

Description

@rowanhill

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions