summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/launchers/policy
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-05 21:14:49 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-11-05 21:14:49 +0000
commit8c049462ff6387d8c3f69f4e42a4c4b36e38a90c (patch)
tree3e6b1ec1ab2e2a724d9228ca55052394c3034060 /sandbox/travelsample/launchers/policy
parent68c3920fc0ba41c6a9ebf062bd41e5ebf647e51b (diff)
Format the code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833174 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/policy')
-rw-r--r--sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java
index 838b9d93e5..4e16b9c072 100644
--- a/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java
+++ b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java
@@ -28,20 +28,17 @@ import org.apache.tuscany.sca.node.SCANodeFactory;
public class PolicyLauncher {
public static void main(String[] args) throws Exception {
- SCANode node1 = SCANodeFactory.newInstance().createSCANode(null,
- locate("client"),
- locate("payment"));
+ SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, locate("client"), locate("payment"));
node1.start();
-
- SCANode node2 = SCANodeFactory.newInstance().createSCANode(null,
- locate("creditcard"));
-
+
+ SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, locate("creditcard"));
+
node2.start();
-
+
Runnable client = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable");
client.run();
-
+
node1.stop();
node2.stop();
}