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); }
public void postRegister(Boolean registered) { if (registered.equals(Boolean.TRUE)) { registrar.registerDottedName(delegate.getDottedName(), delegate.getObjectName()); changeState(REGISTERED); } }