diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-25 15:55:20 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-25 15:55:20 +0000 |
commit | 6d5f611840cd1c893a4575f4b6e385b242c1b4d0 (patch) | |
tree | c6f0845dec3694bb7d292b40b4afd015bef67ebb /sca-java-2.x/trunk/modules/shell/src/main/java | |
parent | be32381f21467ea121234b8196ec25f695170508 (diff) |
Update Shell for API changes
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1039078 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell/src/main/java')
-rw-r--r-- | sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java index b6bd70a5cb..f9bd9fda1e 100644 --- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java +++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/Shell.java @@ -358,7 +358,7 @@ public class Shell { public boolean stop(List<String> toks) throws ActivationException {
String curi = toks.get(1);
if (toks.size() > 2) {
- getNode().removeFromDomainLevelComposite(curi, toks.get(2));
+ getNode().stop(curi, toks.get(2));
} else {
if (standaloneNodes.containsKey(curi)) {
standaloneNodes.remove(curi).stop();
@@ -370,7 +370,7 @@ public class Shell { }
} else {
for (String compositeURI : getNode().getDeployedComposites(curi)) {
- getNode().removeFromDomainLevelComposite(curi, compositeURI);
+ getNode().stop(curi, compositeURI);
}
}
}
@@ -392,7 +392,7 @@ public class Shell { Contribution c = getNode().getInstalledContribution(curi);
for (Artifact a : c.getArtifacts()) {
if (compositeURI.equals(a.getURI())) {
- getNode().addToDomainLevelComposite(curi, compositeURI);
+ getNode().start(curi, compositeURI);
return true;
}
}
@@ -401,7 +401,7 @@ public class Shell { URL url = IOHelper.getLocationAsURL(compositeURI);
InputStream is = IOHelper.openStream(url);
BufferedReader br = new BufferedReader(new InputStreamReader(is, "UTF-8"));
- getNode().addDeploymentComposite(curi, br);
+ getNode().start(curi, br);
} catch (Exception e) {
System.out.println(e);
}
|