id prefixes are now done at the very last moment instead of when an item is added.
[xmlrouter] / config / src / main / java / org / wamblee / xmlrouter / config / Config.java
index baa4c8b4d72d0f6d2c38bba418ba7f354882721c..aa5c5409851fbcb6a155ee18a5c046de2f1be1e2 100644 (file)
@@ -29,6 +29,12 @@ import org.wamblee.xmlrouter.common.Id;
  *            Type for which ids are generated.
  */
 public interface Config<T extends Identifiable> extends Identifiable<Config> {
+
+    /**
+     * @return The type of contained object.
+     */
+    Class<T> getType();
+
     /**
      * Adds an item. No item with the same id may exist.
      *