Skip to main content

[jsr363-experts] Re: ApacheCon F2F

  • From: Werner Keil < >
  • To: " " < >
  • Cc: Anatole Tresch < >
  • Subject: [jsr363-experts] Re: ApacheCon F2F
  • Date: Mon, 5 Oct 2015 14:12:12 +0200

About 1. since we provide a default implementation of ServiceProvider,
there is no need to declare one in META-INF.
https://github.com/unitsofmeasurement/unit-api/blob/master/src/test/java/javax/measure/spi/BootstrapTest.java
shows, simply replacing it works, though TestServiceProvider extends the
default one in that case.
This would equally work if you override it with another provider that calls
OSGi or other mechanisms.

About 2. unless a simple vote by mail is preferred, maybe it would be a
good idea to create a JIRA ticket ("improvement" sounds best since the
general mechanism of silently picking the first one already exists, if we
agreed that was OK, then no action or JIRA was required;-)

Werner

On Mon, Oct 5, 2015 at 12:45 PM, Martin Desruisseaux <
>
 wrote:

> So the answers to my questions are:
>
>    1.
>
>    Yes we consider okay to require anyone to use the
>    META-INF/services/javax.measure.spi.ServiceProvider mechanism for
>    registering their implementation, even if they use OSGi past that point.
>    2.
>
>    If more than one implementation is found, choices are:
>
>
>    - Silently pickup the first one, or
>    - Throw an exception.
>
> Is anyone fine with the above? And which behaviour do we select if there
> is more than one implementation?
>
>     Martin
>
>
>


[jsr363-experts] ApacheCon F2F

Werner Keil 10/02/2015

[jsr363-experts] Re: ApacheCon F2F

Martin Desruisseaux 10/04/2015

[jsr363-experts] Re: ApacheCon F2F

Werner Keil 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Martin Desruisseaux 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Werner Keil 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Werner Keil 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Martin Desruisseaux 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Werner Keil 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Martin Desruisseaux 10/05/2015

[jsr363-experts] Re: ApacheCon F2F

Werner Keil 10/05/2015
 
 
Close
loading
Please Confirm
Close