JBossWS SVN: r10040 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009: src/main/java/org/jboss/ws/metadata/umdm and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-05-15 07:43:42 -0400 (Fri, 15 May 2009)
New Revision: 10040
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/version.properties
Log:
[JBPAPP-2009] Correct WeakReference handling in ConfigObservable to remove cleared WeakReferences.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2009-05-15 11:09:54 UTC (rev 10039)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/src/main/java/org/jboss/ws/metadata/umdm/EndpointMetaData.java 2009-05-15 11:43:42 UTC (rev 10040)
@@ -21,8 +21,12 @@
*/
package org.jboss.ws.metadata.umdm;
+
// $Id$
+
+import java.lang.ref.Reference;
+import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.lang.reflect.Method;
import java.util.ArrayList;
@@ -640,6 +644,7 @@
if (retParam != null)
createAccessor(retParam, jaxbCtx);
}
+
}
private void eagerInitializeJAXBContextCache()
@@ -843,6 +848,7 @@
class ConfigObservable extends Observable
{
+ private ReferenceQueue<WeakReference<Observer>> queue = new ReferenceQueue<WeakReference<Observer>>();
private List<WeakReference<Observer>> observer = new ArrayList<WeakReference<Observer>>();
public void doNotify(Object object)
@@ -853,15 +859,17 @@
public synchronized void addObserver(Observer o)
{
- observer.add(new WeakReference(o));
+ clearCollected();
+ observer.add(new WeakReference(o, queue));
}
public synchronized void deleteObserver(Observer o)
{
+ clearCollected();
for (WeakReference<Observer> w : observer)
{
Observer tmp = w.get();
- if (tmp.equals(o))
+ if (tmp != null && tmp.equals(o))
{
observer.remove(o);
break;
@@ -877,16 +885,29 @@
public void notifyObservers(Object arg)
{
+ clearCollected();
if (hasChanged())
{
for (WeakReference<Observer> w : observer)
{
Observer tmp = w.get();
- tmp.update(this, arg);
-
+ if (tmp != null)
+ {
+ tmp.update(this, arg);
+ }
}
}
}
+
+ private void clearCollected()
+ {
+ Reference ref;
+ while ((ref = queue.poll()) != null)
+ {
+ observer.remove(ref);
+ }
+
+ }
}
public List<UnifiedPortComponentRefMetaData> getServiceRefContrib()
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/version.properties 2009-05-15 11:09:54 UTC (rev 10039)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/version.properties 2009-05-15 11:43:42 UTC (rev 10040)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.SP2_CP05
-repository.id=2.0.1.SP2_CP05
+version.id=2.0.1.SP2_CP05_JBPAPP-2009
+repository.id=2.0.1.SP2_CP05_JBPAPP-2009
implementation.title=JBoss Web Services - Native
implementation.url=http://www.jboss.org/products/jbossws
15 years, 7 months
JBossWS SVN: r10039 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-05-15 07:09:54 -0400 (Fri, 15 May 2009)
New Revision: 10039
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009/
Log:
[JBPAPP-2009] Branch for patch.
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-2009 (from rev 10038, stack/native/tags/jbossws-native-2.0.1.SP2_CP05)
15 years, 7 months
JBossWS SVN: r10038 - framework/tags/jbossws-framework-2.0.1.GA_CP04.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-14 13:32:23 -0400 (Thu, 14 May 2009)
New Revision: 10038
Modified:
framework/tags/jbossws-framework-2.0.1.GA_CP04/version.properties
Log:
[JBPAPP-1655] Update version.properties
Modified: framework/tags/jbossws-framework-2.0.1.GA_CP04/version.properties
===================================================================
--- framework/tags/jbossws-framework-2.0.1.GA_CP04/version.properties 2009-05-14 17:29:37 UTC (rev 10037)
+++ framework/tags/jbossws-framework-2.0.1.GA_CP04/version.properties 2009-05-14 17:32:23 UTC (rev 10038)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.GA_CP-SNAPSHOT
-repository.id=2.0.1.GA_CP-SNAPSHOT
+version.id=2.0.1.GA_CP04
+repository.id=2.0.1.GA_CP04
implementation.title=JBoss Web Services - Framework
implementation.url=http://www.jboss.org/products/jbossws
15 years, 7 months
JBossWS SVN: r10037 - framework/tags.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-14 13:29:37 -0400 (Thu, 14 May 2009)
New Revision: 10037
Added:
framework/tags/jbossws-framework-2.0.1.GA_CP04/
Log:
[JBPAPP-1655] Tagging jbossws-framework 2.0.1.GA_CP04
Copied: framework/tags/jbossws-framework-2.0.1.GA_CP04 (from rev 10036, framework/branches/jbossws-framework-2.0.1.GA_CP)
15 years, 7 months
JBossWS SVN: r10036 - framework/branches/jbossws-framework-2.0.1.GA_CP.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-14 13:28:00 -0400 (Thu, 14 May 2009)
New Revision: 10036
Modified:
framework/branches/jbossws-framework-2.0.1.GA_CP/version.properties
Log:
Updating dependencies
Modified: framework/branches/jbossws-framework-2.0.1.GA_CP/version.properties
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP/version.properties 2009-05-14 07:42:31 UTC (rev 10035)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP/version.properties 2009-05-14 17:28:00 UTC (rev 10036)
@@ -14,8 +14,8 @@
implementation.vendor.id=http://www.jboss.org
# Thirdparty library versions
-jbossws-common=1.0.0.GA_CP03-brew
-jbossws-spi=1.0.0.GA_CP01-brew
+jbossws-common=1.0.0.GA_CP04-brew
+jbossws-spi=1.0.0.GA_CP02-brew
dom4j=1.6.1
jboss-common-core=2.0.2.GA
15 years, 7 months
JBossWS SVN: r10035 - common/tags/jbossws-common-1.0.0.GA_CP04.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-14 03:42:31 -0400 (Thu, 14 May 2009)
New Revision: 10035
Modified:
common/tags/jbossws-common-1.0.0.GA_CP04/version.properties
Log:
Fixing versions
Modified: common/tags/jbossws-common-1.0.0.GA_CP04/version.properties
===================================================================
--- common/tags/jbossws-common-1.0.0.GA_CP04/version.properties 2009-05-14 07:36:57 UTC (rev 10034)
+++ common/tags/jbossws-common-1.0.0.GA_CP04/version.properties 2009-05-14 07:42:31 UTC (rev 10035)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=1.0.0.GA_CP-SNAPSHOT
-repository.id=1.0.0.GA_CP-SNAPSHOT
+version.id=1.0.0.GA_CP04
+repository.id=1.0.0.GA_CP04
implementation.title=JBoss Web Services - Common
implementation.url=http://www.jboss.org/products/jbossws
15 years, 7 months
JBossWS SVN: r10034 - common/tags.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-14 03:36:57 -0400 (Thu, 14 May 2009)
New Revision: 10034
Added:
common/tags/jbossws-common-1.0.0.GA_CP04/
Log:
[JBPAPP-1688] Tagging common 1.0.0.GA_CP04
Copied: common/tags/jbossws-common-1.0.0.GA_CP04 (from rev 10033, common/branches/jbossws-common-1.0.0.GA_CP)
15 years, 7 months
JBossWS SVN: r10032 - spi/tags/jbossws-spi-1.0.0.GA_CP02.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-12 06:11:59 -0400 (Tue, 12 May 2009)
New Revision: 10032
Modified:
spi/tags/jbossws-spi-1.0.0.GA_CP02/version.properties
Log:
[JBPAPP-1749] Fixing version.properties
Modified: spi/tags/jbossws-spi-1.0.0.GA_CP02/version.properties
===================================================================
--- spi/tags/jbossws-spi-1.0.0.GA_CP02/version.properties 2009-05-12 10:08:43 UTC (rev 10031)
+++ spi/tags/jbossws-spi-1.0.0.GA_CP02/version.properties 2009-05-12 10:11:59 UTC (rev 10032)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=1.0.0.GA_CP-SNAPSHOT
-repository.id=1.0.0.GA_CP-SNAPSHOT
+version.id=1.0.0.GA_CP02
+repository.id=1.0.0.GA_CP02
implementation.title=JBoss Web Services - SPI
implementation.url=http://www.jboss.org/products/jbossws
15 years, 7 months
JBossWS SVN: r10031 - spi/tags.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-12 06:08:43 -0400 (Tue, 12 May 2009)
New Revision: 10031
Added:
spi/tags/jbossws-spi-1.0.0.GA_CP02/
Log:
[JBPAPP-1749] Tagging jbossws-spi-1.0.0.GA_CP02
Copied: spi/tags/jbossws-spi-1.0.0.GA_CP02 (from rev 10030, spi/branches/jbossws-spi-1.0.0.GA_CP)
15 years, 7 months
JBossWS SVN: r10030 - in framework: tags and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2009-05-11 06:47:17 -0400 (Mon, 11 May 2009)
New Revision: 10030
Added:
framework/tags/jbossws-framework-3.1.2.SP1/
Removed:
framework/branches/jbossws-framework-3.1.2.SP1/
Log:
Tagging jbossws-framework 3.1.2.SP1
Copied: framework/tags/jbossws-framework-3.1.2.SP1 (from rev 10029, framework/branches/jbossws-framework-3.1.2.SP1)
15 years, 7 months