summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/core
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-24 17:49:04 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-24 17:49:04 +0000
commitf30d35bb8d6ccac38e4aa1b3c9fc2ea1ff5f0081 (patch)
tree42bc7b9c200112ebaf9c93b533cba69b16b771a8 /java/sca/modules/core
parent00b04245e37062f04461a2f67ee79cff72c9a956 (diff)
Add a test to avoid expensive reset of the CompositeActivator
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@797578 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core')
-rw-r--r--java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java
index 705934e557..cc3bbc1f6e 100644
--- a/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java
+++ b/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/context/impl/CallableReferenceImpl.java
@@ -428,12 +428,12 @@ public class CallableReferenceImpl<B> implements ServiceReferenceExt<B> {
}
this.proxyFactory = compositeActivator.getCompositeContext().getProxyFactory();
- } else {
+ } else if (compositeActivator == null) {
this.compositeActivator = CompositeContext.getCurrentCompositeActivator();
if (this.compositeActivator != null) {
this.proxyFactory = this.compositeActivator.getCompositeContext().getProxyFactory();
}
- }
+ }
}
// ==================================================================================