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;
/**
ExtendedConfig<T> {
private Class<T> type;
- private Id<Config> id;
+ private String prefix;
private Map<Id<T>, T> registered;
/**
* Constructs the object.
*/
- public ConfigImpl(Class<T> aType, Id<Config> aId) {
+ public ConfigImpl(Class<T> aType, String aPrefix) {
notNull("type", aType);
- notNull("id", aId);
+ notNull("id", aPrefix);
type = aType;
- id = aId;
+ prefix = aPrefix;
registered = new HashMap<Id<T>, T>();
}
*/
public ConfigImpl(ConfigImpl<T> aConfig) {
notNull("config", aConfig);
- id = aConfig.id;
+ prefix = aConfig.prefix;
registered = new HashMap<Id<T>, T>();
for (Map.Entry<Id<T>, T> entry : aConfig.registered.entrySet()) {
registered.put(entry.getKey(), entry.getValue());
}
@Override
- public Id<Config> getId() {
- return id;
+ public String getPrefix() {
+ return prefix;
}
/*