Example #1
0
 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;
   }
 }
Example #2
0
 public Widget makechild(Factory type, Object[] pargs, Object[] cargs) {
   Widget child = type.create(this, cargs);
   addchild(child, pargs);
   return (child);
 }