ECF / JaxRSProviders

Remote Services distribution provider based upon JaxRS. Includes imples based upon Jersey and CXF.
Apache License 2.0
13 stars 18 forks source link

Bug 499165 - [jax-rs] query service registry for additional jax-rs #2

Closed erdalkaraca closed 7 years ago

erdalkaraca commented 7 years ago

Initial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=499165

scottslewis commented 7 years ago

Hi Erdal,

I'll merge this pull request, but I would like to move toward having an approach that would work the same for any jax-rs extension, rather than just for MessageBodyWriters. I think this could be done by introducing a new whiteboard service interface like this:

public interface JaxRSExtension {

Object getProviderInstance(); int getProviderPriority(); Collection<Class<?>> getProviderContracts();

}

or something like that. I think the results of methods should correspond to one of the jaxrs Configurable methods

wdyt? I'll post to bug and we can discuss there.