coreRuntime/src/sc/dyn/DynUtil.java
public static void dispose(Object obj, boolean disposeChildren) {
      SyncManager.removeSyncInst(obj);
      Bind.removeBindings(obj, false);

      if (dynamicSystem != null)
         dynamicSystem.dispose(obj);
      else {
         // Even if it's dynamic we need to do super.stop() so call these first
         if (obj instanceof IStoppable)
            ((IStoppable) obj).stop();
         if (obj instanceof IAltComponent)
            ((IAltComponent) obj)._stop();
      }

      if (disposeChildren) {
         // We'll also dispose of the children objects
         // a declarative tree.
         Object[] children = DynUtil.getObjChildren(obj, null, false);
         if (children != null) {
            for (Object child:children) {
               if (child != null)
                  dispose(child);
            }
         }
      }

      objectIds.remove(new IdentityWrapper(obj));
      scopeNames.remove(obj);
   }
/**
    * Called to remove the object from the dynamic type system.  Though we use weak storage for these instances,
    * it's faster to get rid of them when you are done.  Also removes the bindings.  Used the system dispose method
    * to just remove the instance from the instancesByType table.
    */
Called to remove the object from the dynamic type system.  Though we use weak storage for these instances,
it's faster to get rid of them when you are done.  Also removes the bindings.  Used the system dispose method
to just remove the instance from the instancesByType table.
Called to remove the object from the dynamic type system . Though we use weak storage for these instances it ' s faster to get rid of them when you are done . Also removes the bindings . Used the system dispose method to just remove the instance from the instancesByType table .
public static void dispose(Object obj, boolean disposeChildren) {
      SyncManager.removeSyncInst(obj);
      Bind.removeBindings(obj, false);
      if (dynamicSystem != null)
         dynamicSystem.dispose(obj);
      else {
         if (obj instanceof IStoppable)
            ((IStoppable) obj).stop();
         if (obj instanceof IAltComponent)
            ((IAltComponent) obj)._stop();
      }
      if (disposeChildren) {
         Object[] children = DynUtil.getObjChildren(obj, null, false);
         if (children != null) {
            for (Object child:children) {
               if (child != null)
                  dispose(child);
            }
         }
      }
      objectIds.remove(new IdentityWrapper(obj));
      scopeNames.remove(obj);
   }
public static void dispose ( Object obj , boolean disposeChildren ) { SyncManager . removeSyncInst ( obj ) ; Bind . removeBindings ( obj , false ) ; if ( dynamicSystem != null ) dynamicSystem . dispose ( obj ) ; else { if ( obj instanceof IStoppable ) ( ( IStoppable ) obj ) . stop ( ) ; if ( obj instanceof IAltComponent ) ( ( IAltComponent ) obj ) . _stop ( ) ; } if ( disposeChildren ) { Object [ ] children = DynUtil . getObjChildren ( obj , null , false ) ; if ( children != null ) { for ( Object child : children ) { if ( child != null ) dispose ( child ) ; } } } objectIds . remove ( new IdentityWrapper ( obj ) ) ; scopeNames . remove ( obj ) ; }
Called to remove the object from the dynamic type system.
Called to remove the object from the dynamic type system .
// Even if it's dynamic we need to do super.stop() so call these first // We'll also dispose of the children objects // a declarative tree.