aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/gv/egiz/moazs/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs/config')
-rw-r--r--src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java25
1 files changed, 7 insertions, 18 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java b/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java
index 93615c4..d5b52c5 100644
--- a/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/config/DeliveryRequestAugmenterConfig.java
@@ -1,31 +1,20 @@
package at.gv.egiz.moazs.config;
+import at.gv.egiz.moazs.preprocess.ConfigProfileGenerator;
import at.gv.zustellung.app2mzs.xsd.ConfigType;
-import org.springframework.beans.factory.annotation.Value;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import static at.gv.zustellung.app2mzs.xsd.ConfigType.configTypeBuilder;
-import static at.gv.zustellung.app2mzs.xsd.ServerType.serverTypeBuilder;
+import java.util.Map;
@Configuration
public class DeliveryRequestAugmenterConfig {
-
- @Value("${msg.default.url}")
- private String zuseUrlID;
-
@Bean
- public ConfigType defaultMzsConfig() {
-
- var server = serverTypeBuilder()
- .withZUSEUrlID(zuseUrlID)
- .withX509(null) //todo load cert!
- .build();
-
- return configTypeBuilder()
- .withPerformQueryPersonRequest(false)
- .withServer(server)
- .build();
+ @Autowired
+ Map<String, ConfigType> deliveryRequestConfigs(ConfigProfileGenerator generator) {
+ return generator.generate();
}
+
}