diff options
author | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-16 13:31:53 +0200 |
---|---|---|
committer | Christof Rabensteiner <christof.rabensteiner@iaik.tugraz.at> | 2019-05-16 13:31:53 +0200 |
commit | 4501468f1ffe1a8141e0c8711cd3cf78260df0c9 (patch) | |
tree | b3a3f2fc25018fed85c8e5abdd942fa5007d5a4f /src/main/java/at/gv/egiz/moazs/config | |
parent | f193a2165d9261c2bd3413339c954a8bba829a93 (diff) | |
download | moa-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.java | 8 |
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(); } |