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.
*
*
* @param <T>
*/
-// TODO make sure that each item inside this config is prefixed with the id of
-// the config.
public abstract class ConfigImpl<T extends Identifiable<T>> implements
ExtendedConfig<T> {
* Constructs the object.
*/
public ConfigImpl(Id<Config> aId) {
- // TODO test for null.
+ notNull("id", aId);
id = aId;
registered = new ArrayList<T>();
}