[Swift-commit] cog r3842

swift at ci.uchicago.edu swift at ci.uchicago.edu
Mon Nov 25 02:05:03 CST 2013


------------------------------------------------------------------------
r3842 | hategan | 2013-11-25 02:03:37 -0600 (Mon, 25 Nov 2013) | 1 line

allow identity creation to be overriden by subclasses
------------------------------------------------------------------------
Index: modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java
===================================================================
--- modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java	(revision 3841)
+++ modules/abstraction-common/src/org/globus/cog/abstraction/impl/common/task/TaskImpl.java	(working copy)
@@ -57,12 +57,16 @@
     private boolean anythingWaiting;
 
     public TaskImpl() {
-        this.id = new IdentityImpl();
+        this.id = newIdentity();
         this.serviceList = new ArrayList<Service>(2);
         this.status = new StatusImpl();
         statusListeners = new CopyOnWriteHashSet<StatusListener>();
     }
 
+    protected Identity newIdentity() {
+        return new IdentityImpl();
+    }
+
     public TaskImpl(String name, int type) {
         this();
         this.setName(name);



More information about the Swift-commit mailing list