camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-8452) Camel route model - Preserve {{ }} placeholders in model
Date Fri, 06 Mar 2015 15:02:38 GMT
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)

Mime
View raw message