Reduced the time during which the configuration is locked. Computation of paths now...
[xmlrouter] / impl / src / main / java / org / wamblee / xmlrouter / impl / TransformationPaths.java
index 7a86c87d8f41e135bb9f659da4d1155222e2676b..caca48cfd7150185b97d6fe4d49174cc98c61ce2 100644 (file)
@@ -18,7 +18,6 @@ package org.wamblee.xmlrouter.impl;
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.HashSet;
-import java.util.LinkedHashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.Set;
@@ -44,15 +43,11 @@ public class TransformationPaths {
     /**
      * Construct the transformations.
      */
-    public TransformationPaths() {
-        transformations = new LinkedHashMap<Id<Transformation>, Transformation>();
-        vertices = new ArrayList<String>();
-        matrix = new TransformationPath[0][0];
-    }
-
-    public void replaceTransformations(
+    public TransformationPaths(
         Map<Id<Transformation>, Transformation> aTransformations) {
         transformations = aTransformations;
+        vertices = new ArrayList<String>();
+        matrix = new TransformationPath[0][0];
         computeTransformationSequences();
     }