X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FSingleRouterConfig.java;h=a72e9a2294d6c49a4d51c3a621c4f4460ac80d9d;hb=527c11be54abf336333ac8fc5b55cc053dbedaf8;hp=deb38f6656fcd39ea9f3bf37e4768b23a94431cb;hpb=d7938dd34e22ba8d34b4a89840c6efbb5d866380;p=xmlrouter diff --git a/impl/src/main/java/org/wamblee/xmlrouter/impl/SingleRouterConfig.java b/impl/src/main/java/org/wamblee/xmlrouter/impl/SingleRouterConfig.java index deb38f6..a72e9a2 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/SingleRouterConfig.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/SingleRouterConfig.java @@ -22,8 +22,6 @@ import org.wamblee.xmlrouter.config.Filter; import org.wamblee.xmlrouter.config.RouterConfig; import org.wamblee.xmlrouter.config.Transformation; -// TODO implement copying of routerconfig. - /** * Represents a single configuration set of a single configuration client of the * XML router. @@ -34,7 +32,7 @@ public class SingleRouterConfig implements ExtendedRouterConfig { public static final class DocumentConfig extends ConfigImpl { public DocumentConfig(Id aId) { - super(aId); + super(DocumentType.class, aId); } public DocumentConfig(DocumentConfig aConfig) { @@ -42,15 +40,15 @@ public class SingleRouterConfig implements ExtendedRouterConfig { } @Override - public DocumentType wrap(String aPrefix, DocumentType aT) { - return new RobustDocumentType(aPrefix, aT); + public DocumentType wrap(DocumentType aT) { + return new RobustDocumentType(aT); } } public static final class TransformationConfig extends ConfigImpl { public TransformationConfig(Id aId) { - super(aId); + super(Transformation.class, aId); } public TransformationConfig(TransformationConfig aConfig) { @@ -58,15 +56,14 @@ public class SingleRouterConfig implements ExtendedRouterConfig { } @Override - public Transformation wrap(String aPrefix, - Transformation aTransformation) { - return new RobustTransformation(aPrefix, aTransformation); + public Transformation wrap(Transformation aTransformation) { + return new RobustTransformation(aTransformation); } } public static final class FilterConfig extends ConfigImpl { public FilterConfig(Id aId) { - super(aId); + super(Filter.class, aId); } public FilterConfig(FilterConfig aConfig) { @@ -74,8 +71,8 @@ public class SingleRouterConfig implements ExtendedRouterConfig { } @Override - public Filter wrap(String aPrefix, Filter aFilter) { - return new RobustFilter(aPrefix, aFilter); + public Filter wrap(Filter aFilter) { + return new RobustFilter("", aFilter); } }