changeset 695:5a83840fa11c

ProjectConfigurator
author Devel 2
date Mon, 27 Nov 2017 11:24:22 +0100
parents 273721fe69d1
children 60afd76e6ca8
files stress-tester/src/main/java/com/passus/st/config/ProjectConfigurator.java
diffstat 1 files changed, 42 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/stress-tester/src/main/java/com/passus/st/config/ProjectConfigurator.java	Mon Nov 27 11:24:22 2017 +0100
@@ -0,0 +1,42 @@
+package com.passus.st.config;
+
+import com.passus.config.CMapNode;
+import com.passus.config.CNode;
+import com.passus.config.CTupleNode;
+import com.passus.config.Configuration;
+import com.passus.config.ConfigurationContext;
+import static com.passus.config.ConfigurationUtils.validateType;
+import com.passus.config.Configurator;
+import com.passus.config.NodeType;
+import com.passus.config.validation.Errors;
+import java.util.List;
+
+/**
+ *
+ * @author Mirosław Hawrot
+ */
+public class ProjectConfigurator implements Configurator {
+
+    private final DomainConfiguratorFactory configuratorFactory = DomainConfiguratorFactory.getInstance();
+
+    private void processRootNode(CNode rootNode, Errors errors) {
+        if (!validateType(rootNode, NodeType.MAP, errors)) {
+            return;
+        }
+
+        CMapNode mapNode = (CMapNode) rootNode;
+        List<CTupleNode> tuples = mapNode.getChildren();
+        
+    }
+
+    @Override
+    public void validate(Configuration config, Errors errors, ConfigurationContext context) {
+        
+    }
+
+    @Override
+    public void configure(Configuration config, Errors errors, ConfigurationContext context) {
+        
+    }
+
+}