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.
public static final class DocumentConfig extends ConfigImpl<DocumentType> {
public DocumentConfig(Id<Config> aId) {
- super(aId);
+ super(DocumentType.class, aId);
}
public DocumentConfig(DocumentConfig aConfig) {
}
@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<Transformation> {
public TransformationConfig(Id<Config> aId) {
- super(aId);
+ super(Transformation.class, aId);
}
public TransformationConfig(TransformationConfig aConfig) {
}
@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<Filter> {
public FilterConfig(Id<Config> aId) {
- super(aId);
+ super(Filter.class, aId);
}
public FilterConfig(FilterConfig aConfig) {
}
@Override
- public Filter wrap(String aPrefix, Filter aFilter) {
- return new RobustFilter(aPrefix, aFilter);
+ public Filter wrap(Filter aFilter) {
+ return new RobustFilter("", aFilter);
}
}