coreRuntime/src/sc/sync/SyncManager.java
public static boolean registerSyncInst(Object inst) {
      String scopeName = DynUtil.getScopeName(inst);
      SyncContext syncCtx;
      if (scopeName == null)
         syncCtx = getDefaultSyncContext();
      else
         syncCtx = getSyncContext(null, scopeName, true);

      if (syncCtx != null)
         return syncCtx.registerSyncInst(inst);
      else if (scopeName != null && verbose) {
         if (getSyncState() != SyncState.Disabled)
            System.err.println("*** No sync context for scope: " + scopeName + " available to register instance: " + DynUtil.getInstanceName(inst));
      }
      return false;
   }
/** Use this if you create a new object which you know to be created by your component on the other side of the destination.  By default
    * objects which are created outside of a sync operation will be "new" objects that get sent via an object tag, not a modify operator.
    * But for repeat nodes, etc. which are sync'd by the framework itself, those should not come across as new, just a modify. */
Use this if you create a new object which you know to be created by your component on the other side of the destination.  By default
objects which are created outside of a sync operation will be "new" objects that get sent via an object tag, not a modify operator.
But for repeat nodes, etc. which are sync'd by the framework itself, those should not come across as new, just a modify.
Use this if you create a new object which you know to be created by your component on the other side of the destination . By default objects which are created outside of a sync operation will be " new " objects that get sent via an object tag not a modify operator . But for repeat nodes etc . which are sync ' d by the framework itself those should not come across as new just a modify .
public static boolean registerSyncInst(Object inst) {
      String scopeName = DynUtil.getScopeName(inst);
      SyncContext syncCtx;
      if (scopeName == null)
         syncCtx = getDefaultSyncContext();
      else
         syncCtx = getSyncContext(null, scopeName, true);
      if (syncCtx != null)
         return syncCtx.registerSyncInst(inst);
      else if (scopeName != null && verbose) {
         if (getSyncState() != SyncState.Disabled)
            System.err.println("*** No sync context for scope: " + scopeName + " available to register instance: " + DynUtil.getInstanceName(inst));
      }
      return false;
   }
public static boolean registerSyncInst ( Object inst ) { String scopeName = DynUtil . getScopeName ( inst ) ; SyncContext syncCtx ; if ( scopeName == null ) syncCtx = getDefaultSyncContext ( ) ; else syncCtx = getSyncContext ( null , scopeName , true ) ; if ( syncCtx != null ) return syncCtx . registerSyncInst ( inst ) ; else if ( scopeName != null && verbose ) { if ( getSyncState ( ) != SyncState . Disabled ) System . err . println ( "*** No sync context for scope: " + scopeName + " available to register instance: " + DynUtil . getInstanceName ( inst ) ) ; } return false ; }
Use this if you create a new object which you know to be created by your component on the other side of the destination.
Use this if you create a new object which you know to be created by your component on the other side of the destination .