streams - Übungen - Microservices - Schritt 03
[demos/microservices] / validate-order / src / main / java / de / trion / microservices / validateorder / ApplicationProperties.java
diff --git a/validate-order/src/main/java/de/trion/microservices/validateorder/ApplicationProperties.java b/validate-order/src/main/java/de/trion/microservices/validateorder/ApplicationProperties.java
new file mode 100644 (file)
index 0000000..25d6515
--- /dev/null
@@ -0,0 +1,55 @@
+package de.trion.microservices.validateorder;
+
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+
+@ConfigurationProperties("validate-order")
+public class ApplicationProperties
+{
+  String bootstrapServers = "kafka:9092";
+  String schemaRegistryUrl = "http://schema-registry:8081";
+  String ordersTopic = "orders";
+  String validationTopic = "validation";
+
+
+  public String getBootstrapServers()
+  {
+    return bootstrapServers;
+  }
+
+  public void setBootstrapServers(String bootstrapServers)
+  {
+    this.bootstrapServers = bootstrapServers;
+  }
+
+  public String getSchemaRegistryUrl()
+  {
+    return schemaRegistryUrl;
+  }
+
+  public void setSchemaRegistryUrl(String schemaRegistryUrl)
+  {
+    this.schemaRegistryUrl = schemaRegistryUrl;
+  }
+
+  public String getOrdersTopic()
+  {
+    return ordersTopic;
+  }
+
+  public void setOrdersTopic(String topic)
+  {
+    this.ordersTopic = topic;
+  }
+
+  public String getValidationTopic()
+  {
+    return validationTopic;
+  }
+
+  public void setValidationTopic(String topic)
+  {
+    this.validationTopic = topic;
+  }
+}