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 --- .../src/main/java/scatours/NotificationWSLauncher.java | 15 +++++++-------- .../src/main/java/scatours/notification/Notification.java | 4 ++-- 2 files changed, 9 insertions(+), 10 deletions(-) (limited to 'sandbox/travelsample/launchers/notification-ws/src/main/java') diff --git a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java index 4d7f1741fe..fbdb1500f5 100644 --- a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java +++ b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java @@ -31,18 +31,17 @@ import scatours.notification.Notification; public class NotificationWSLauncher { public static void main(String[] args) throws Exception { - SCAContribution notificationContribution = - locate("notification"); - SCAContribution notificationWSContribution = - locate("notification-ws"); + SCAContribution notificationContribution = locate("notification"); + SCAContribution notificationWSContribution = locate("notification-ws"); - SCANode node = SCANodeFactory.newInstance().createSCANode( - "notification-ws.composite", notificationContribution, notificationWSContribution); + SCANode node = + SCANodeFactory.newInstance().createSCANode("notification-ws.composite", + notificationContribution, + notificationWSContribution); node.start(); System.out.println("Quick notification test"); - Notification notification = ((SCAClient)node).getService( - Notification.class, "Notification"); + Notification notification = ((SCAClient)node).getService(Notification.class, "Notification"); String accountID = "1234"; String subject = "Holiday payment taken"; String message = "Payment of £102.37 accepted..."; diff --git a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/notification/Notification.java b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/notification/Notification.java index 79706fcc9d..020e1e40db 100644 --- a/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/notification/Notification.java +++ b/sandbox/travelsample/launchers/notification-ws/src/main/java/scatours/notification/Notification.java @@ -20,7 +20,7 @@ package scatours.notification; public interface Notification { - - boolean notify(String accountID, String subject, String message); + + boolean notify(String accountID, String subject, String message); } -- cgit v1.2.3