diff options
author | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-17 06:27:35 +0000 |
---|---|---|
committer | jsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68> | 2008-09-17 06:27:35 +0000 |
commit | bf76f257f730bba10fb157e701c71aa9593f1558 (patch) | |
tree | d6f17db72ec08b7f24d3053029a18a5ab923cf4c /branches/sca-android/modules | |
parent | 2b3da3acd9d5a61c294afded917753efdf330bbb (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@696172 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-android/modules')
-rw-r--r-- | branches/sca-android/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/branches/sca-android/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java b/branches/sca-android/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java index 2ab9471c91..7aa55d2cff 100644 --- a/branches/sca-android/modules/databinding/src/main/java/org/apache/tuscany/sca/databinding/DefaultTransformerExtensionPoint.java +++ b/branches/sca-android/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; + } /** |