-
Improvement
-
Resolution: Duplicate
-
Major
-
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.
- Fait partie de
-
REPOSITORY-474 [DataHolder] use ValueContext in all methods
- Open
- Référence
-
REPOSITORY-406 Model aware data holders should be able to retrieve the default value from the model
- Closed