id prefixes are now done at the very last moment instead of when an item is added.
[xmlrouter] / impl / src / main / java / org / wamblee / xmlrouter / impl / SingleRouterConfig.java
index deb38f6656fcd39ea9f3bf37e4768b23a94431cb..4ecaad4a35d633679620f791426242f868784b35 100644 (file)
@@ -34,7 +34,7 @@ public class SingleRouterConfig implements ExtendedRouterConfig {
 
     public static final class DocumentConfig extends ConfigImpl<DocumentType> {
         public DocumentConfig(Id<Config> aId) {
-            super(aId);
+            super(DocumentType.class, aId);
         }
 
         public DocumentConfig(DocumentConfig aConfig) {
@@ -43,14 +43,14 @@ public class SingleRouterConfig implements ExtendedRouterConfig {
 
         @Override
         public DocumentType wrap(String aPrefix, DocumentType aT) {
-            return new RobustDocumentType(aPrefix, aT);
+            return new RobustDocumentType("", aT);
         }
     }
 
     public static final class TransformationConfig extends
         ConfigImpl<Transformation> {
         public TransformationConfig(Id<Config> aId) {
-            super(aId);
+            super(Transformation.class, aId);
         }
 
         public TransformationConfig(TransformationConfig aConfig) {
@@ -60,13 +60,13 @@ public class SingleRouterConfig implements ExtendedRouterConfig {
         @Override
         public Transformation wrap(String aPrefix,
             Transformation aTransformation) {
-            return new RobustTransformation(aPrefix, aTransformation);
+            return new RobustTransformation("", aTransformation);
         }
     }
 
     public static final class FilterConfig extends ConfigImpl<Filter> {
         public FilterConfig(Id<Config> aId) {
-            super(aId);
+            super(Filter.class, aId);
         }
 
         public FilterConfig(FilterConfig aConfig) {
@@ -75,7 +75,7 @@ public class SingleRouterConfig implements ExtendedRouterConfig {
 
         @Override
         public Filter wrap(String aPrefix, Filter aFilter) {
-            return new RobustFilter(aPrefix, aFilter);
+            return new RobustFilter("", aFilter);
         }
     }