From 8ba0c2b58c94d740cf4a11496c4803379e004e3e Mon Sep 17 00:00:00 2001 From: Gunnar Hillert Date: Mon, 13 Feb 2012 09:43:28 -0500 Subject: [PATCH] INTSAMPLES-54 - Code Review: Rename DelayerApp to PollerApp --- basic/helloworld/README.md | 8 ++++---- basic/helloworld/pom.xml | 4 ++-- .../helloworld/{DelayerApp.java => PollerApp.java} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/{DelayerApp.java => PollerApp.java} (95%) diff --git a/basic/helloworld/README.md b/basic/helloworld/README.md index 6b3c2216..a7be3b2c 100644 --- a/basic/helloworld/README.md +++ b/basic/helloworld/README.md @@ -4,7 +4,7 @@ Hello World Sample This is an obvious place to get started. This sample project contains 2 basic sample applications: * Hello World -* Delayer Application +* Poller Application ## Hello World @@ -20,15 +20,15 @@ You should see the following output: INFO : org.springframework.integration.samples.helloworld.HelloWorldApp - ==> HelloWorldDemo: Hello World -## Delayer Application +## Poller Application This simple application will print out the current system time twice every 20 seconds. More specifically, an **Inbound Channel Adapter** polls for the current system time 2 times every 20 seconds (20000 milliseconds). The resulting message contains as payload the time in milliseconds and the message is sent to a **Logging Channel Adapter**, which will print the time to the command prompt. -To run the sample simply execute **DelayerApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): +To run the sample simply execute **PollerApp** in package **org.springframework.integration.samples.helloworld**. You can also execute that class using the [Exec Maven Plugin](http://mojo.codehaus.org/exec-maven-plugin/): - $ mvn clean package exec:java -P delayer + $ mvn clean package exec:java -P poller You should see output like the following: diff --git a/basic/helloworld/pom.xml b/basic/helloworld/pom.xml index b6fb6eda..a96e401d 100644 --- a/basic/helloworld/pom.xml +++ b/basic/helloworld/pom.xml @@ -23,9 +23,9 @@ - delayer + poller - org.springframework.integration.samples.helloworld.DelayerApp + org.springframework.integration.samples.helloworld.PollerApp diff --git a/basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/DelayerApp.java b/basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/PollerApp.java similarity index 95% rename from basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/DelayerApp.java rename to basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/PollerApp.java index 3182582f..b173b22b 100644 --- a/basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/DelayerApp.java +++ b/basic/helloworld/src/main/java/org/springframework/integration/samples/helloworld/PollerApp.java @@ -2,7 +2,7 @@ package org.springframework.integration.samples.helloworld; import org.springframework.context.support.ClassPathXmlApplicationContext; -public class DelayerApp { +public class PollerApp { /** * Simple application that polls the current system time 2 times every