You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (Jira)" <ji...@apache.org> on 2020/08/12 10:37:00 UTC

[jira] [Resolved] (CAMEL-15396) [properties-binding] support for list binding with gaps

     [ https://issues.apache.org/jira/browse/CAMEL-15396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Luca Burgazzoli resolved CAMEL-15396.
-------------------------------------
    Resolution: Fixed

> [properties-binding] support for list binding with gaps
> -------------------------------------------------------
>
>                 Key: CAMEL-15396
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15396
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Luca Burgazzoli
>            Assignee: Luca Burgazzoli
>            Priority: Major
>             Fix For: 3.5.0
>
>
> Assuming we have a set of properties like:
>  
> {code}
> camel.k.sources[0] = #class:SourceDefinition
> camel.k.sources[0].name = timer
> camel.k.sources[0].language = yaml
> camel.k.sources[3] = #class:SourceDefinition
> camel.k.sources[3].name = test
> camel.k.sources[3].language = xml
> {code}
> Then binding to a target class with a code like:
> {code:java}
> PropertyBindingSupport.build()
>             .withCamelContext(context)
>             .withTarget(conf)
>             .withProperties(properties)
>             .withRemoveParameters(false)
>             .withOptionPrefix("camel.k.")
>             .withConfigurer(configurer)
>             .bind()
> {code}
> Would fail for index out of bound.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)