factories_.addElement(factory);
}
public synchronized AccFactory get_factory(String id) throws NoSuchFactory {
for (int i = 0; i < factories_.size(); i++) {
AccFactory factory = (AccFactory) factories_.elementAt(i);
if (id.equals(factory.id()))
return factory;
}
throw new NoSuchFactory(id);
}