Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10937

Camel components - Configured using setters should support property placeholders

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.19.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      So if you do

                      KafkaComponent kafka = new KafkaComponent();
                      kafka.setBrokers("{{kafka.host}}:{{kafka.port}}");
      

      Then those property placeholder should be resolved by Camel and set as their actual value when the component is starting up.

      Then you can configure this from just java code as well. As <bean> style have property placeholders but then its either blueprint or spring style. If we allow to use Camel style then users can do this more consistently.

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              davsclaus Claus Ibsen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: