refactoring of the config interface towards more reuse in the implementation and...
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / RouterConfig.java
index db69d743feedd1d96f70a7a03bdb2eb5da65bba4..9e53f4995929d585f42889929902e32407fdea72 100644 (file)
@@ -15,9 +15,6 @@
  */
 package org.wamblee.xmlrouter.config;
 
-import java.util.Collection;
-
-import org.wamblee.xmlrouter.common.Id;
 
 /**
  * Configuration API for the XML router.
@@ -28,31 +25,13 @@ public interface RouterConfig {
 
     // Documents
 
-    Id<DocumentType> addDocumentType(DocumentType aType);
-
-    void removeDocumentType(Id<DocumentType> aId);
-
-    Collection<Id<DocumentType>> getDocumentTypes();
-
-    DocumentType getDocumentType(Id<DocumentType> aId);
+    Config<DocumentType> getDocumentTypeConfig();
 
     // Transformations
 
-    Id<Transformation> addTransformation(Transformation aTransformation);
-
-    void removeTransformation(Id<Transformation> aId);
-
-    Collection<Id<Transformation>> getTransformations();
-
-    Transformation getTransformation(Id<Transformation> aId);
+    Config<Transformation> getTransformationConfig();
 
     // Filters
 
-    Id<Filter> addFilter(Filter aFilter);
-
-    void removeFilter(Id<Filter> aId);
-
-    Collection<Id<Filter>> getFilters();
-
-    Filter getFilter(Id<Filter> aId);
+    Config<Filter> getFilterConfig();
 }