CompositeConfig tested.
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / Config.java
index b12210b1b841a5ac52af7dec6cdcd9a1607eea67..e825f9fc1d29b3bf77c9e673e5ea6c91f992eb2c 100644 (file)
@@ -28,15 +28,14 @@ import org.wamblee.xmlrouter.common.Id;
  * @param <T>
  *            Type for which ids are generated.
  */
-public interface Config<T> extends Identifiable<Config> {
-
-    // TODO define what happens when there is a duplicate item.
-
+public interface Config<T extends Identifiable> extends Identifiable<Config> {
     /**
      * Adds an item. No item with the same id may exist.
      * 
      * @param aT
      *            item
+     * @throws DuplicateException
+     *             In case an object with the same id already exists.
      */
     void add(T aT);