now making sure that ids re prefixed by the config id.
[xmlrouter] / impl / src / main / java / org / wamblee / xmlrouter / impl / SingleRouterConfig.java
index 5e2fffe4829009b1d67cc26c8f66bc2808b776a7..b069215b102731099ee88f6a22384af64a5ac886 100644 (file)
@@ -45,21 +45,22 @@ public class SingleRouterConfig implements ExtendedRouterConfig {
         documentTypes = new ConfigImpl<DocumentType>(new Id<Config>(
             "documentTypes")) {
             @Override
-            public DocumentType wrap(DocumentType aT) {
-                return new RobustDocumentType(aT);
+            public DocumentType wrap(String aPrefix, DocumentType aT) {
+                return new RobustDocumentType(aPrefix, aT);
             }
         };
         transformations = new ConfigImpl<Transformation>(new Id<Config>(
             "transformations")) {
             @Override
-            public Transformation wrap(Transformation aTransformation) {
-                return new RobustTransformation(aTransformation);
+            public Transformation wrap(String aPrefix,
+                Transformation aTransformation) {
+                return new RobustTransformation(aPrefix, aTransformation);
             }
         };
         filters = new ConfigImpl<Filter>(new Id<Config>("filters")) {
             @Override
-            public Filter wrap(Filter aFilter) {
-                return new RobustFilter(aFilter);
+            public Filter wrap(String aPrefix, Filter aFilter) {
+                return new RobustFilter(aPrefix, aFilter);
             }
         };
     }