You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Hiram Chirino (JIRA)" <ji...@apache.org> on 2015/03/12 16:14:38 UTC

[jira] [Resolved] (CAMEL-8452) Camel route model - Preserve {{ }} placeholders in model

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

Hiram Chirino resolved CAMEL-8452.
----------------------------------
    Resolution: Fixed
      Assignee: Hiram Chirino

> Camel route model - Preserve {{ }} placeholders in model
> --------------------------------------------------------
>
>                 Key: CAMEL-8452
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8452
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.15.0
>            Reporter: Claus Ibsen
>            Assignee: Hiram Chirino
>             Fix For: 2.16.0
>
>
> When people use {{ }} property placeholders in the route model, it gets resolved with the actual value during route creation, and the original {{ }} is lost.
> What we should do is preserve the {{ }} and do the resolve on demand (on access). The trick is to make this transparent, or to keep a shadow map of the {{ }} to actual mapping or something.
> But by preserving the {{ }} we can make round trip editing possible. And also if people use {{ }} for username and passwords, then they are not exposed in the model.
> ITs this logic that resolves the placeholders currently
> org.apache.camel.model.ProcessorDefinitionHelper#resolvePropertyPlaceholders(org.apache.camel.CamelContext, java.lang.Object)



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