X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FConfigImpl.java;h=ae2351f97d37c2e4ae08c5dd0d7a7d5ea090352a;hb=3b2c669b25bfcb5a3c3f06ff9180d85143bebb2a;hp=777ecd0ac2c45864328605eeff9955419197673a;hpb=e95d0100812a1d7461a2458c8bd2c845d1fc7816;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 777ecd0..ae2351f 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/ConfigImpl.java @@ -23,8 +23,6 @@ import java.util.HashMap; import java.util.Map; import org.wamblee.xmlrouter.common.Id; -import org.wamblee.xmlrouter.config.Config; -import org.wamblee.xmlrouter.config.ConfigException; import org.wamblee.xmlrouter.config.Identifiable; /** @@ -38,17 +36,17 @@ public abstract class ConfigImpl> implements ExtendedConfig { private Class type; - private Id id; + private String prefix; private Map, T> registered; /** * Constructs the object. */ - public ConfigImpl(Class aType, Id aId) { + public ConfigImpl(Class aType, String aPrefix) { notNull("type", aType); - notNull("id", aId); + notNull("id", aPrefix); type = aType; - id = aId; + prefix = aPrefix; registered = new HashMap, T>(); } @@ -65,7 +63,7 @@ public abstract class ConfigImpl> implements */ public ConfigImpl(ConfigImpl aConfig) { notNull("config", aConfig); - id = aConfig.id; + prefix = aConfig.prefix; registered = new HashMap, T>(); for (Map.Entry, T> entry : aConfig.registered.entrySet()) { registered.put(entry.getKey(), entry.getValue()); @@ -73,8 +71,8 @@ public abstract class ConfigImpl> implements } @Override - public Id getId() { - return id; + public String getPrefix() { + return prefix; } /*