Reduced the time during which the configuration is locked. Computation of paths now...
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / RouterConfig.java
index db69d743feedd1d96f70a7a03bdb2eb5da65bba4..57ddae740cc78a438190733c9242ca550b9f27ed 100644 (file)
  */
 package org.wamblee.xmlrouter.config;
 
-import java.util.Collection;
-
-import org.wamblee.xmlrouter.common.Id;
-
 /**
  * Configuration API for the XML router.
  * 
@@ -26,33 +22,18 @@ import org.wamblee.xmlrouter.common.Id;
  */
 public interface RouterConfig {
 
-    // Documents
-
-    Id<DocumentType> addDocumentType(DocumentType aType);
-
-    void removeDocumentType(Id<DocumentType> aId);
-
-    Collection<Id<DocumentType>> getDocumentTypes();
-
-    DocumentType getDocumentType(Id<DocumentType> aId);
-
-    // Transformations
-
-    Id<Transformation> addTransformation(Transformation aTransformation);
-
-    void removeTransformation(Id<Transformation> aId);
-
-    Collection<Id<Transformation>> getTransformations();
-
-    Transformation getTransformation(Id<Transformation> aId);
-
-    // Filters
-
-    Id<Filter> addFilter(Filter aFilter);
-
-    void removeFilter(Id<Filter> aId);
+    /**
+     * @return Document types.
+     */
+    Config<DocumentType> documentTypeConfig();
 
-    Collection<Id<Filter>> getFilters();
+    /**
+     * @return Transformations.
+     */
+    Config<Transformation> transformationConfig();
 
-    Filter getFilter(Id<Filter> aId);
+    /**
+     * @return Filters.
+     */
+    Config<Filter> filterConfig();
 }