コード例 #1
0
 public ObjectName[] getChildren() {
   final Collection c = delegate.getAllChildren();
   final ObjectName[] names = new ObjectName[c.size()];
   final Iterator it = c.iterator();
   int i = 0;
   while (it.hasNext()) {
     final StatsHolder s = (StatsHolder) it.next();
     names[i++] = s.getObjectName();
   }
   assert (names.length == i) : "Sizes don't match";
   return (names);
 }
コード例 #2
0
 public void postRegister(Boolean registered) {
   if (registered.equals(Boolean.TRUE)) {
     registrar.registerDottedName(delegate.getDottedName(), delegate.getObjectName());
     changeState(REGISTERED);
   }
 }