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

Support for nested properties binding

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-M3, 3.0.0
    • came-core
    • None
    • Unknown

    Description

      As today properties binding does not work for nested objects so assuming I have a class like:

      class MyComponent {
          
          public void setFoo(String foo) {
              this.foo = foo;
          }
      
          public String getFoo() {
              return foo;
          }
      
          public void setConfiguration(Configuration conf) {
              this.conf = conf;
          }
      
          public Configuration getConfiguration() {
              return conf;
          }
      
          static class Configuration {
          
              public void setBar(String bar) {
                  this.bar = bar
              }
      
              public String getBar() {
                  return bar
              }
          }
      }
      

      And a set of properties like:

      myComponent.foo = "foo"
      myComponent.conf.bar = "bar"
      

      Then only MyComponent.foo will be set but it would be nice if the binding framework could navigate the property using dot notation and set any dependent object.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: