summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 14:33:16 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-09-16 14:33:16 +0000
commit532c261558444c338d2d48391e7d543fee086746 (patch)
treee5aac38cc6e448f486a0e20feddb142e1c4ae662 /java
parent09bf470e7078468db2cc4fb0a9cf7751b03c97db (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@695908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java b/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java
index 2ab9471c91..7aa55d2cff 100644
--- a/java/sca/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java
+++ b/java/sca/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;
+
}
/**