aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs/config
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-16 13:31:53 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-16 13:31:53 +0200
commit4501468f1ffe1a8141e0c8711cd3cf78260df0c9 (patch)
treeb3a3f2fc25018fed85c8e5abdd942fa5007d5a4f /src/main/java/at/gv/egiz/moazs/config
parentf193a2165d9261c2bd3413339c954a8bba829a93 (diff)
downloadmoa-zs-4501468f1ffe1a8141e0c8711cd3cf78260df0c9.tar.gz
moa-zs-4501468f1ffe1a8141e0c8711cd3cf78260df0c9.tar.bz2
moa-zs-4501468f1ffe1a8141e0c8711cd3cf78260df0c9.zip
Refactor: Merge Converter, Validator, and Merger into Util
- Reason: All three classes opertate with the same data type, have the same clients, and have the same reasons for change. - Makes code in client more readable as it reduces number of dependencies.
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/config')
-rw-r--r--src/main/java/at/gv/egiz/moazs/config/PreprocessConfig.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/PreprocessConfig.java b/src/main/java/at/gv/egiz/moazs/config/PreprocessConfig.java
index ce40691..d1295b1 100644
--- a/src/main/java/at/gv/egiz/moazs/config/PreprocessConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/config/PreprocessConfig.java
@@ -27,15 +27,11 @@ public class PreprocessConfig {
@Autowired
public ConfigProfileGenerator configProfileGenerator(
SpringPropertiesFacade properties,
- MapToConfigConverter converter,
- ConfigProfileValidator validator,
- ConfigProfileMerger merger) {
+ ConfigUtil util) {
return configProfileGeneratorBuilder()
.withProperties(properties)
- .withConverter(converter)
- .withValidator(validator)
- .withMerger(merger)
+ .withConfigUtil(util)
.withVerifyCompletenessOfDefaultConfiguration(verifyCompletenessOfDefaultConfiguration)
.build();
}