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

MicroProfile Config integration

For CDI-defined interfaces, it is possible to use MicroProfile Config properties to define additional behaviors that are available via the RestClientBuilder API. Given our io.pckt.restc.contract.WorldClockApi interface, the following MicroProfile Config properties are available to control the generated proxy behavior:

  • io.pckt.restc.contract.WorldClockApi/mp-rest/url: The base URL to use for this service, the equivalent of the RestClientBuilder#baseUrl method.
  • io.pckt.restc.contract.WorldClockApi/mp-rest/scope: The fully qualified class name to a CDI scope to use for injection; it defaults to javax.enterprise.context.Dependent.
  • io.pckt.restc.contract.WorldClockApi/mp-rest/providers: A comma-separated list of ...

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