added simple semaphore file mechanism for session directory.
[vamsas.git] / src / org / vamsas / client / object.java
index 4757589..18054b7 100644 (file)
@@ -163,7 +163,7 @@ public abstract class object {
     if (registerable && vorbaId == null) {
       // Try to use the associated factory.
       if (__vorba != null)
-        if ((vorbaId = __vorba.makeVorbaId()) == null)
+        if ((vorbaId = __vorba.makeVorbaId(this)) == null)
           return null; // Factory not valid.
         else {
           this.setInstanceIdField();
@@ -235,7 +235,8 @@ public abstract class object {
    * Implementation note for the todo:
    * this works like a depth-first search over all vamsas objects in an vamsasDocument. 
    * The doHash() function is used as the 'visited' flag - 
-   * this *is not* a valid heuristic, although it will work "most of the time". 
+   * this *is not* a valid heuristic, although it will work "most of the time".
+   * TODO: LATER? Add another method for setDefaultProvenanceField (in the spirit of setInstanceIdField) using the info from the __vorba.getClient/User/Session methods 
    */
   protected void __ensure_instance_ids() {
     if (__vorba==null)