From 31c54dc253622bed21ed5c4ee355f07c152bf1d2 Mon Sep 17 00:00:00 2001 From: rfeng Date: Sat, 13 Jun 2009 18:54:32 +0000 Subject: Format the code git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@784450 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/binding-echo/src/main/java/echo/Echo.java | 2 +- .../binding-echo/src/main/java/echo/EchoBindingClient.java | 8 ++++---- .../binding-echo/src/main/java/echo/EchoComponentImpl.java | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) (limited to 'branches/sca-java-1.x/samples/binding-echo/src/main/java/echo') diff --git a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/Echo.java b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/Echo.java index 1d5e973f33..17981083ab 100644 --- a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/Echo.java +++ b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/Echo.java @@ -24,6 +24,6 @@ package echo; * @version $Rev$ $Date$ */ public interface Echo { - + String echo(String msg); } diff --git a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoBindingClient.java b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoBindingClient.java index 0b9d7acb79..046411a3a1 100644 --- a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoBindingClient.java +++ b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoBindingClient.java @@ -31,18 +31,18 @@ public class EchoBindingClient { public static void main(String[] args) throws Exception { - SCADomain scaDomain = SCADomain.newInstance("EchoBinding.composite"); + SCADomain scaDomain = SCADomain.newInstance("EchoBinding.composite"); // Call the echo service component which will, in turn, call a reference // with an echo binding. The echo binding will echo the given string. Echo service = scaDomain.getService(Echo.class, "EchoComponent"); String echoString = service.echo("foo"); - System.out.println("Echo reference = " + echoString ); + System.out.println("Echo reference = " + echoString); // Call the echo server. This will dispatch the call to a service with an // echo binding. The echo binding will pass the call to the echo component. - echoString = (String) EchoServer.getServer().call("http://example.com/server", new Object[] {"bar"}); - System.out.println("Echo service = " + echoString ); + echoString = (String)EchoServer.getServer().call("http://example.com/server", new Object[] {"bar"}); + System.out.println("Echo service = " + echoString); scaDomain.close(); diff --git a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoComponentImpl.java b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoComponentImpl.java index cec1c2bdbc..cdfdfc3e8a 100644 --- a/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoComponentImpl.java +++ b/branches/sca-java-1.x/samples/binding-echo/src/main/java/echo/EchoComponentImpl.java @@ -22,7 +22,6 @@ import org.osoa.sca.annotations.Constructor; import org.osoa.sca.annotations.Reference; import org.osoa.sca.annotations.Service; - /** * A simple client component that uses a reference with an Echo binding. * @@ -40,7 +39,7 @@ public class EchoComponentImpl implements Echo { public String echo(String msg) { String result = echoReference.echo(msg); - System.out.println("Returned message: "+ result); + System.out.println("Returned message: " + result); return result; } } -- cgit v1.2.3