O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Providing sources of configuration

The source of a configuration is represented by the ConfigSource interface. You do not need to implement this interface unless you want to provide a source of configurations that are not available by the MicroProfile implementation you use in your application.

If a property is found in multiple config sources, Config will return the value from the ConfigSource interface with the highest ordinal value.

Ordering ConfigSource is important as users can provide custom ConfigSource interfaces in addition to the default ones provided by the MicroProfile Config implementation.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required