diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-09 12:24:47 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-03-09 12:24:47 +0000 |
commit | b00b05494396c0cfd71cb0587cc5d2086c4f381c (patch) | |
tree | 96305f23d8cb55ae20f942c07d15f45cbdd8968f /sca-java-2.x/trunk | |
parent | 7538d088967c7b65aa717e991840b199d8f60010 (diff) |
Performance enhancement - only initilize all the factories the first time
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1079773 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java index 7dc1a7639a..38d9973e37 100644 --- a/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java +++ b/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/RuntimeEndpointImpl.java @@ -185,6 +185,11 @@ public class RuntimeEndpointImpl extends EndpointImpl implements RuntimeEndpoint if (compositeContext == null) { compositeContext = new CompositeContext(registry, endpointRegistry); } + + // if interfaceContractMapper is already initialized then all the rest will be too + if (interfaceContractMapper != null) { + return; + } this.registry = registry; UtilityExtensionPoint utilities = registry.getExtensionPoint(UtilityExtensionPoint.class); this.interfaceContractMapper = utilities.getUtility(InterfaceContractMapper.class); |