Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3034

Change new API's getValue methods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Major Major
    • 4.5.0
    • 4.2.0
    • None
    • None
    • 4.5 M2

      In the new API, the model aware data holders have 2 getValue methods:

      • <T extends Object> T getValue(String dataPath);
      • <T extends Object> T getValue(String dataPath, boolean useDefaultFromModel, T fallback);

      A new API's user would rather have signatures which look like:

      • <T extends Object> T getValue(String dataPath);
      • <T extends Object> T getValueOrDefault(String dataPath, T defaultValue);
      • <T extends Object> T getValueOrDefaultFromModel(String dataPath, T fallback);

       

      If we decide to change the methods' signatures, the config has to be impacted too.

            cbayle Caroline Bayle
            cbayle Caroline Bayle
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: