Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [microprofile-dev] 2 ConfigSources same ordinal

>In what order are these ConfigSources set in Config's list?

It is indeterminable. It is very random.

>Is there a rule that provides order consistency?
The sepc does not provide a rule for this. The best practice is not to use the same ordinal for different config sources.

Thanks
Emily

On Wed, Jun 3, 2020 at 4:33 PM Rebecca Searls <rsearls@xxxxxxxxxx> wrote:
When 2 ConfigSources have the same ordinal value,
what is the rule for an implementation's setting order
in the Config's ConfigSource list.

Example:
  BobsIncredibleLibConfigSource ordinal = 110 returns property prodName=BobsIncredibleLib
  User includes BobsIncredibleLibConfigSource in his app but also provides
    UsersCoolAppConfigSource ordinal = 110 and property prodName=UsersCoolApp

In what order are these ConfigSources set in Config's list?
Is there a rule that provides order consistency?
_______________________________________________
microprofile-dev mailing list
microprofile-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/microprofile-dev


--
Thanks
Emily


Back to the top