summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-06 09:13:48 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-06 09:13:48 +0000
commita5cccf450ad2e848ad90642de85749959cd9cd53 (patch)
treede1f3bee16c268238e196b8b195dcb787e11ee21 /sca-java-2.x/trunk/modules
parent8d872c54684e5ab2d0a8691602da46e2177ddad9 (diff)
Minor performance enhancement - create scope once instead of each time
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1078432 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java
index 3bc7a486a5..215a796cc1 100644
--- a/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java
+++ b/sca-java-2.x/trunk/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaImplementationProvider.java
@@ -55,6 +55,7 @@ public class JavaImplementationProvider implements ScopedImplementationProvider,
private JavaImplementation implementation;
private JavaComponentContextProvider componentContextProvider;
private RequestContextFactory requestContextFactory;
+ private Scope scope;
public JavaImplementationProvider(RuntimeComponent component,
JavaImplementation implementation,
@@ -78,8 +79,7 @@ public class JavaImplementationProvider implements ScopedImplementationProvider,
componentContextFactory,
requestContextFactory);
- Scope scope = getScope();
-
+ this.scope = new Scope(implementation.getJavaScope().getScope());
componentContextProvider.configureProperties(component.getProperties());
handleResources(implementation, proxyService);
} catch (Exception e) {
@@ -150,7 +150,7 @@ public class JavaImplementationProvider implements ScopedImplementationProvider,
}
public Scope getScope() {
- return new Scope(implementation.getJavaScope().getScope());
+ return scope;
}
public void start() {