diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-12 13:19:17 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2011-05-12 13:19:17 +0000 |
commit | 60b57814f0ad0bbb3293cf81d07b7fb547406b41 (patch) | |
tree | 168ed9a327d7342d00c1c5a114a51d03ff7ce48a /sca-java-2.x/trunk/modules/domain-node/src/main | |
parent | ebf4e08f47d0e6621a1186d30750b0806fbff850 (diff) |
Remove the allNodes static as its not used by anything
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1102283 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/domain-node/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java index d97ad336b2..41f6bc9f1a 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java @@ -87,8 +87,6 @@ public class NodeImpl implements Node { private TuscanyRuntime tuscanyRuntime; private Map<String, InstalledContribution> locallyInstalledContributions = new HashMap<String, InstalledContribution>(); - private static Map<String, Node> allNodes = new HashMap<String, Node>(); - public NodeImpl(String domainName, Deployer deployer, CompositeActivator compositeActivator, EndpointRegistry endpointRegistry, ExtensionPointRegistry extensionPointRegistry, TuscanyRuntime tuscanyRuntime) { this.domainName = domainName; this.deployer = deployer; @@ -96,7 +94,6 @@ public class NodeImpl implements Node { this.endpointRegistry = endpointRegistry; this.extensionPointRegistry = extensionPointRegistry; this.tuscanyRuntime = tuscanyRuntime; - allNodes.put(domainName, this); } public String installContribution(String contributionURL) throws ContributionReadException, ActivationException, ValidationException { @@ -325,7 +322,6 @@ public class NodeImpl implements Node { if (tuscanyRuntime != null) { tuscanyRuntime.stop(); } - allNodes.remove(this.domainName); } public <T> T getService(Class<T> interfaze, String serviceURI) throws NoSuchServiceException { @@ -494,7 +490,7 @@ public class NodeImpl implements Node { protected void startComposite(Composite c, InstalledContribution ic) throws ActivationException, ValidationException { List<Contribution> dependentContributions = calculateDependentContributions(ic); - DeployedComposite dc = new DeployedComposite(c, ic, dependentContributions, deployer, compositeActivator, endpointRegistry, extensionPointRegistry); + DeployedComposite dc = new DeployedComposite(c, ic.getContribution(), dependentContributions, deployer, compositeActivator, endpointRegistry, extensionPointRegistry); ic.start(dc); } @@ -543,8 +539,4 @@ public class NodeImpl implements Node { return endpointRegistry; } - public static Node nodeExists(String domainName) { - return allNodes.get(domainName); - } - } |