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

Support for nested properties binding

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-M3, 3.0.0
    • Component/s: came-core
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: