You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/03/05 13:19:00 UTC

[jira] [Comment Edited] (CAMEL-16302) camel-core - Optional property placeholders

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

Claus Ibsen edited comment on CAMEL-16302 at 3/5/21, 1:18 PM:
--------------------------------------------------------------

TODO: optional placeholders for endpoint URIs *DONE*
TODO: optional placeholders for endpoint DSL *DONE*
TODO: optional placeholders for EIPs *DONE*
TODO: update docs *DONE*



was (Author: davsclaus):
TODO: optional placeholders for endpoint URIs *DONE*
TODO: optional placeholders for endpoint DSL *DONE*
TODO: optional placeholders for EIPs


> camel-core - Optional property placeholders 
> --------------------------------------------
>
>                 Key: CAMEL-16302
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16302
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.9.0
>
>
> We can add support for letting property placeholders be optional, if the key starts with ?
> eg so you can do
> {code}
> to("kafka:cheese?{{?maxBlock}}")
> {code}
> And maxBlock is a key=value
> But for endpoints we should allow the value to indicate its optional which makes the option optional.
> {code}
> to("kafka:cheese?maxBlockMs={{?myBlock}}")
> {code}
> So the producer will then only use maxBlockMs if there is a value, otherwise the uri becomes "kafka:cheese"



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