CompositeConfig tested.
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / RouterConfigService.java
index baefd944799cf3e31d1adcd60bbd84722a3db405..60eaa617584f925dfa8641607289df1a9388f6b0 100644 (file)
@@ -25,10 +25,13 @@ import org.wamblee.xmlrouter.common.Id;
  */
 public interface RouterConfigService {
 
+    // TODO must deal with conflicts with ids provided by applications and those
+    // used by the xmlrouter internally.
+
     /**
      * @return New empty configuration.
      */
-    RouterConfig emptyConfig();
+    RouterConfig emptyConfig(String aId);
 
     /**
      * Applies a given configuration.
@@ -40,7 +43,7 @@ public interface RouterConfigService {
      *            configuration.
      * @return Id of the applied configuration.
      */
-    Id<RouterConfig> apply(RouterConfig aConfig, Id<RouterConfig> aOldConfig);
+    void apply(RouterConfig aConfig, Id<RouterConfig> aOldConfig);
 
     /**
      * Clears the configuration for a given id.