[ 
https://issues.apache.org/jira/browse/CAMEL-10197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15402884#comment-15402884
 ] 

ASF GitHub Bot commented on CAMEL-10197:
----------------------------------------

GitHub user nicolaferraro opened a pull request:

    https://github.com/apache/camel/pull/1098

    CAMEL-10197: camel-spring-boot - Extend the configuration hints to nested 
properties

    I generated the plain get/set methods on several components to allow 
configuration and auto-completion in spring-boot.
    
    I generated the SB configuration classes an adocs.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/nicolaferraro/camel CAMEL-10197

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/1098.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1098
    
----
commit 5de276d4c98febf97efb324c1dbeceb922e08b2e
Author: Nicola Ferraro <[email protected]>
Date:   2016-08-01T16:27:09Z

    CAMEL-10197: Added plain get/set to components for spring-boot configuration

commit 9222097192942a68157a2b9e7883d472f09aa49d
Author: Nicola Ferraro <[email protected]>
Date:   2016-08-01T21:19:15Z

    CAMEL-10197: Source check

commit a400774a06f4a26d60987a69e6f9a286ffc0eac8
Author: Nicola Ferraro <[email protected]>
Date:   2016-08-01T21:42:34Z

    CAMEL-10197: Fix for camel-avro configuration

----


> camel-spring-boot - Extend the configuration hints to nested properties
> -----------------------------------------------------------------------
>
>                 Key: CAMEL-10197
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10197
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-spring-boot
>            Reporter: Nicola Ferraro
>            Assignee: Nicola Ferraro
>
> 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:
> {code}
> camel.component.docker.configuration.host=172.28.128.4
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to