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 08:30:00 UTC
[jira] [Created] (CAMEL-15396) Support for list binding with gaps
Luca Burgazzoli created CAMEL-15396:
---------------------------------------
Summary: 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
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)