summaryrefslogtreecommitdiffstats
path: root/branches/sca-equinox/modules/databinding/src
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-17 05:52:05 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-09-17 05:52:05 +0000
commitb6f3a77061869d3efadb83ae7bac6d4b3fb95605 (patch)
tree0724b2f1f6a655c189475d738657e29339a50788 /branches/sca-equinox/modules/databinding/src
parent3c6f40cb143a0e929891d45b0bea69983bf957cb (diff)
Fix random concurrent update problem when transforms are loaded by synchronizing access to the load method
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@696165 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-equinox/modules/databinding/src')
-rw-r--r--branches/sca-equinox/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/branches/sca-equinox/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java b/branches/sca-equinox/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java
index 2ab9471c91..7aa55d2cff 100644
--- a/branches/sca-equinox/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java
+++ b/branches/sca-equinox/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java
@@ -94,13 +94,14 @@ public class DefaultTransformerExtensionPoint implements TransformerExtensionPoi
* Dynamically load transformers registered under META-INF/services.
*
*/
- private void loadTransformers() {
+ private synchronized void loadTransformers() {
if (loadedTransformers) {
return;
}
+ loadedTransformers = true;
loadTransformers(PullTransformer.class);
loadTransformers(PushTransformer.class);
- loadedTransformers = true;
+
}
/**