Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Raymond Auge
The spec states ".. static extensions being ranked below all whiteboard services". - Ray On Fri, Aug 25, 2017 at 9:51 AM, Bram Pouwelse wrote: > I think the service ranking trick could work but .. what about an > application that has a custom one defined in the application

Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Bram Pouwelse
I think the service ranking trick could work but .. what about an application that has a custom one defined in the application itself? On Fri, Aug 25, 2017 at 3:46 PM Tim Ward wrote: > In that case register the custom one targeting that exact application, and > give it a

Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Tim Ward
In that case register the custom one targeting that exact application, and give it a higher service ranking than the default writer. Tim Sent from my iPhone > On 25 Aug 2017, at 14:26, Bram Pouwelse wrote: > > I was more woried about conflicts, for example a default

Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Raymond Auge
Simply publish your "shared" extension with a low service ranking! Finally, if an application needs a specific one, they need to depend on it anyway! - Ray On Fri, Aug 25, 2017 at 9:26 AM, Bram Pouwelse wrote: > I was more woried about conflicts, for example a default

Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Bram Pouwelse
I was more woried about conflicts, for example a default "*MessageBodyWriter to provide JSON serialization*" I could register that targeting all applications but some application could need a customized one? Bram On Fri, Aug 25, 2017 at 3:20 PM Raymond Auge wrote: >

Re: [osgi-dev] Questions about JAX-RS Extension services

2017-08-25 Thread Raymond Auge
Binding an extension to every app is pretty much free since only those resources/applications/extensions having a dependency on it can/will use it! Right? - Ray On Thu, Aug 24, 2017 at 3:34 PM, Bram Pouwelse wrote: > I was mainly looking for the possibility to register