diff options
author | Håkon Hallingstad <hakon@oath.com> | 2019-01-25 11:28:11 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@oath.com> | 2019-01-25 11:28:11 +0100 |
commit | 38449fd3d36f8a207fcae3c12f29068a799d2413 (patch) | |
tree | 7ac13d8e6f7ce24e45613340d4aa99ea2fff36d9 /config-model-api | |
parent | 8dbc9098a8f27c0987bee404a4fe24da8bf1bac1 (diff) |
Make ModelContext.Properties more accessible in config model
This commit makes it easier to get the ModelContext.Properties instance in the
config model. Before, one would typically have to change a bunch of code to
wire through a new property (builder methods and fields, DeployProperties
constructor, fields, and getters, mock classes, ...).
It is made accessible through:
- ModelContext.properties(),
- DeployState.getProperties(), and
- ConfigModelContext.properties()
The Properties implementation is in the configserver module, making it easy to
back properties with flags.
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java b/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java index 6d5804ab700..5021a2b3a5f 100644 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/ModelContext.java @@ -39,6 +39,7 @@ public interface ModelContext { /** The Vespa version we want nodes to become */ Version wantedNodeVespaVersion(); + /** Warning: As elsewhere in this package, do not make backwards incompatible changes that will break old config models! */ interface Properties { boolean multitenant(); ApplicationId applicationId(); |