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 2015/03/06 16:02:38 UTC

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

Claus Ibsen created CAMEL-8452:
----------------------------------

             Summary: 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
             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)