Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10197

camel-spring-boot - Extend the configuration hints to nested properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.18.0
    • camel-spring-boot
    • None
    • Unknown

    Description

      Support for spring-boot configuration allows users to configure the component properties but does not give any hint on nested properties.

      There are many components that declare properties on nested beans.
      Eg. camel-docker has only one property named configuration . I found this pattern in components that allow users to specify a default value on the component and override it on each endpoint, if necessary.

      Setting the property:

      camel.component.docker.configuration.host=172.28.128.4
      

      allows a user to specify the docker host, but the tooling does not give suggestions about that property.

      A way to allow the users to view the nested properties is using the NestedConfigurationProperty annotation on the spring-boot configuration class. The spring-boot inspector will scan the nested class for properties.

      The drawback is that the javadoc is not read from setters. Another drawback is that we will be using a different approach respect to the "read-the-json" one.

      We need to figure out how to add these properties.

      Attachments

        Issue Links

          Activity

            People

              dhirajsb Dhiraj Sureshkumar Bokde
              nferraro Nicola Ferraro
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: