From f4a3dadb55c218e69c29c5bac7f530d4b0a123b1 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sun, 28 Sep 2008 22:18:43 +0000 Subject: [PATCH] Updated CafeDemo to use the new @Gateway method annotation. --- .../org/springframework/integration/samples/cafe/Cafe.java | 7 +++++-- .../integration/samples/cafe/annotation/cafeDemo.xml | 4 +--- .../integration/samples/cafe/xml/cafeDemo.xml | 4 +--- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/Cafe.java b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/Cafe.java index 590da1f950..548d9ee11c 100644 --- a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/Cafe.java +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/Cafe.java @@ -16,18 +16,21 @@ package org.springframework.integration.samples.cafe; +import org.springframework.integration.annotation.Gateway; + /** * The entry point for Cafe Demo. The demo's main() method invokes the * 'placeOrder' method on a generated MessagingGateway proxy. * The gateway then passes the {@link Order} as the payload of a * {@link org.springframework.integration.message.Message} to the - * configured requestChannel. The channel reference ('orders') - * is configured in the 'cafeDemo.xml' file. + * configured requestChannel. The channel ('orders') is + * defined in the 'cafeDemo.xml' file. * * @author Mark Fisher */ public interface Cafe { + @Gateway(requestChannel="orders") void placeOrder(Order order); } diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/annotation/cafeDemo.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/annotation/cafeDemo.xml index aaed429cac..1c6efec330 100644 --- a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/annotation/cafeDemo.xml +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/annotation/cafeDemo.xml @@ -18,9 +18,7 @@ - + diff --git a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/xml/cafeDemo.xml b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/xml/cafeDemo.xml index d786cdd93e..5ea6223f2e 100644 --- a/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/xml/cafeDemo.xml +++ b/org.springframework.integration.samples/src/main/java/org/springframework/integration/samples/cafe/xml/cafeDemo.xml @@ -12,9 +12,7 @@ - +