You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-commits@ws.apache.org by ct...@apache.org on 2009/01/03 17:40:29 UTC

svn commit: r731019 - /webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java

Author: ctwiner
Date: Sat Jan  3 08:40:29 2009
New Revision: 731019

URL: http://svn.apache.org/viewvc?rev=731019&view=rev
Log:
MUSE-286 - added Eitans patch.

Modified:
    webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java

Modified: webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java
URL: http://svn.apache.org/viewvc/webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java?rev=731019&r1=731018&r2=731019&view=diff
==============================================================================
--- webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java (original)
+++ webservices/muse/trunk/modules/muse-wsrf-impl/src/org/apache/muse/ws/resource/sg/impl/SimpleServiceGroup.java Sat Jan  3 08:40:29 2009
@@ -103,7 +103,7 @@
         return entry;
     }
     
-    public WsResource addEntry(EndpointReference memberEPR, WsResource entry)
+    public synchronized WsResource addEntry(EndpointReference memberEPR, WsResource entry)
     {
         _entriesByMemberEPR.put(memberEPR, entry);
         return entry;
@@ -197,15 +197,15 @@
         QName[] array = new QName[allContent.size()];
         return (QName[])allContent.toArray(array);
     }
-
-    public WsResource[] getEntry()
+    
+    public synchronized WsResource[] getEntry()
     {
-        Collection entryResources = _entriesByMemberEPR.values();
+    	Collection entryResources = _entriesByMemberEPR.values();
         WsResource[] asArray = new WsResource[entryResources.size()];
         return (WsResource[])entryResources.toArray(asArray);
     }
     
-    public WsResource getEntry(EndpointReference memberEPR)
+    public synchronized WsResource getEntry(EndpointReference memberEPR)
     {
         return (WsResource)_entriesByMemberEPR.get(memberEPR);
     }
@@ -348,7 +348,7 @@
         return true;
     }
     
-    public void removeEntry(WsResource entry)
+    public synchronized void removeEntry(WsResource entry)
     {
         if (entry == null)
             throw new NullPointerException(_MESSAGES.get("NullEntry"));