X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FConfigImpl.java;h=980bd07601277b1c52b1580df5e44a8a2a7f135c;hb=ef3c789029b09fe8bc279a07a7b2208e286957f0;hp=0324e78f8353b1dd58598e49b66ecca786b6552d;hpb=03a6b404471945aed9d48fc1e5b8447b4a9d9413;p=xmlrouter diff --git a/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java b/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java index 0324e78..980bd07 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java @@ -26,9 +26,6 @@ import org.wamblee.xmlrouter.common.Id; import org.wamblee.xmlrouter.config.Config; import org.wamblee.xmlrouter.config.Identifiable; -// TODO think real hard about the prefixing. We want a consistent view for clients. -// perhaps only provide a method to add items and hide all access to the ids. - /** * Default implementation of the {@link Config} interface. * @@ -36,8 +33,6 @@ import org.wamblee.xmlrouter.config.Identifiable; * * @param */ -// TODO make sure that each item inside this config is prefixed with the id of -// the config. public abstract class ConfigImpl> implements ExtendedConfig { @@ -48,7 +43,7 @@ public abstract class ConfigImpl> implements * Constructs the object. */ public ConfigImpl(Id aId) { - // TODO test for null. + notNull("id", aId); id = aId; registered = new ArrayList(); }