*/
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.
* 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.