*
* @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> implements
ExtendedConfig<T> {
public synchronized void add(T aT) {
// TODO test duplicate ids.
notNull(aT);
- registered.add(wrap(aT));
+ registered.add(wrap(id.getId() + ".", aT));
}
/**
* Object to wrap.
* @return Wrapped object.
*/
- public abstract T wrap(T aT);
+ public abstract T wrap(String aPrefix, T aT);
/*
* (non-Javadoc)