summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/core-spi
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 09:09:14 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 09:09:14 +0000
commit8ac341704ec9c9a946e899370faf85fd02f6f524 (patch)
treeb6c6052eea9d189af63064a6ba7debeb74be3b79 /sca-java-2.x/trunk/modules/core-spi
parent9c562e0a464310bc3a9c6568b94633a45214205e (diff)
Remove CompositeContext threadlocal thats might be causeing a storage leak as Tuscany doesn't use this anymore
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1026981 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core-spi')
-rw-r--r--sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java
index 23a50e5f22..6605ff3fc7 100644
--- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java
+++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/context/CompositeContext.java
@@ -35,7 +35,7 @@ import org.apache.tuscany.sca.runtime.RuntimeComponentContext;
* @version $Rev$ $Date$
*/
public class CompositeContext {
- protected final static InheritableThreadLocal<CompositeContext> context = new InheritableThreadLocal<CompositeContext>();
+
protected ExtensionPointRegistry extensionPointRegistry;
protected EndpointRegistry endpointRegistry;
protected ComponentContextFactory componentContextFactory;
@@ -84,10 +84,6 @@ public class CompositeContext {
RuntimeComponentContext componentContext = component.getComponentContext();
return componentContext.getCompositeContext();
}
- CompositeContext compositeContext = context.get();
- if (compositeContext != null) {
- return compositeContext;
- }
return null;
}
@@ -124,14 +120,6 @@ public class CompositeContext {
return domainComposite;
}
- public static void setThreadCompositeContext(CompositeContext value) {
- context.set(value);
- }
-
- public static void removeCompositeContext() {
- context.remove();
- }
-
public String getNodeURI() {
return nodeURI;
}