public static void initnames() { if (!inited) { for (Factory f : dolda.jglob.Loader.get(RName.class).instances(Factory.class)) { synchronized (types) { types.put(f.getClass().getAnnotation(RName.class).value(), f); } } inited = true; } }
public Widget makechild(Factory type, Object[] pargs, Object[] cargs) { Widget child = type.create(this, cargs); addchild(child, pargs); return (child); }