helidon-io / helidon

Java libraries for writing microservices
https://helidon.io
Apache License 2.0
3.44k stars 562 forks source link

4.x: Fixed configuration metadata of blueprints that are configured and provide a service #8891

Closed tomas-langer closed 2 weeks ago

tomas-langer commented 2 weeks ago

Updated generated documentation to latest state of code.

Resolves #8776

There were two problems in the code:

  1. The protocol config blueprints used wrong provides (must match the @Option.Provider(ProtocolConfigProvider.class) in listener config)
  2. The protocol config blueprints lacked the configured key, and setting that it is not a root configuration

After fixing the above problems, the generated documentation correctly shows the configuration keys, and the listener config documentation now lists all available implementations.

In addition the same problem was with observe providers. Fixed all providers to add config key, re-generated the documentation.

Added validation that @Provides and @Configured must have a configuration key.