From 8c049462ff6387d8c3f69f4e42a4c4b36e38a90c Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 5 Nov 2009 21:14:49 +0000 Subject: Format the code git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833174 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/scatours/InteractionLauncher.java | 60 ++++++++++++---------- 1 file changed, 33 insertions(+), 27 deletions(-) (limited to 'sandbox/travelsample/launchers/interaction/src/main/java') diff --git a/sandbox/travelsample/launchers/interaction/src/main/java/scatours/InteractionLauncher.java b/sandbox/travelsample/launchers/interaction/src/main/java/scatours/InteractionLauncher.java index 93f6f435ee..292b10aaf0 100644 --- a/sandbox/travelsample/launchers/interaction/src/main/java/scatours/InteractionLauncher.java +++ b/sandbox/travelsample/launchers/interaction/src/main/java/scatours/InteractionLauncher.java @@ -28,41 +28,47 @@ import org.apache.tuscany.sca.node.SCANodeFactory; public class InteractionLauncher { public static void main(String[] args) throws Exception { - SCANode node1 = SCANodeFactory.newInstance().createSCANode("client.composite", - locate("common"), - locate("currency"), - locate("calendar"), - locate("shoppingcart"), - locate("interaction-client")); - - SCANode node2 = SCANodeFactory.newInstance().createSCANode("service.composite", - locate("common"), - locate("hotel"), - locate("flight"), - locate("interaction-service-remote")); + SCANode node1 = + SCANodeFactory.newInstance().createSCANode("client.composite", + locate("common"), + locate("currency"), + locate("calendar"), + locate("shoppingcart"), + locate("interaction-client")); - node2.start(); + SCANode node2 = + SCANodeFactory.newInstance().createSCANode("service.composite", + locate("common"), + locate("hotel"), + locate("flight"), + locate("interaction-service-remote")); + + node2.start(); node1.start(); - + Runnable localInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionLocalClient/Runnable"); localInteraction.run(); - + Runnable remoteInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionRemoteClient/Runnable"); - remoteInteraction.run(); - - Runnable requestResponseInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionRequestResponseClient/Runnable"); + remoteInteraction.run(); + + Runnable requestResponseInteraction = + ((SCAClient)node1).getService(Runnable.class, "InteractionRequestResponseClient/Runnable"); requestResponseInteraction.run(); - - Runnable onewayCallbackInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionOneWayCallbackClient/Runnable"); + + Runnable onewayCallbackInteraction = + ((SCAClient)node1).getService(Runnable.class, "InteractionOneWayCallbackClient/Runnable"); onewayCallbackInteraction.run(); - - Runnable conversationalInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionConversationClient/Runnable"); + + Runnable conversationalInteraction = + ((SCAClient)node1).getService(Runnable.class, "InteractionConversationClient/Runnable"); conversationalInteraction.run(); - - Runnable statefulCallbackInteraction = ((SCAClient)node1).getService(Runnable.class, "InteractionStatefulCallbackClient/Runnable"); - statefulCallbackInteraction.run(); - + + Runnable statefulCallbackInteraction = + ((SCAClient)node1).getService(Runnable.class, "InteractionStatefulCallbackClient/Runnable"); + statefulCallbackInteraction.run(); + node1.stop(); node2.stop(); - } + } } -- cgit v1.2.3