From bf4aa1f180b89e45d41e5f5a0809808289c05c66 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Thu, 9 Jul 2009 00:25:36 +0000 Subject: [PATCH] INT-706 moved config files to the same directory as the corresponding demo classes and added descriptions --- .../integration/samples/oddeven/CronOddEvenDemo.java | 8 +++++++- .../integration/samples/oddeven/IntervalOddEvenDemo.java | 8 +++++++- .../integration/samples/oddeven/cronOddEvenDemo.xml | 0 .../integration/samples/oddeven/intervalOddEvenDemo.xml | 0 4 files changed, 14 insertions(+), 2 deletions(-) rename spring-integration-samples/oddeven/src/main/{resources => java}/org/springframework/integration/samples/oddeven/cronOddEvenDemo.xml (100%) rename spring-integration-samples/oddeven/src/main/{resources => java}/org/springframework/integration/samples/oddeven/intervalOddEvenDemo.xml (100%) diff --git a/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/CronOddEvenDemo.java b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/CronOddEvenDemo.java index 9110dcf8c6..cb058e3b02 100644 --- a/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/CronOddEvenDemo.java +++ b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/CronOddEvenDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,12 @@ package org.springframework.integration.samples.oddeven; import org.springframework.context.support.ClassPathXmlApplicationContext; /** + * Demonstrates a method-invoking inbound Channel Adapter with a + * Cron-based polling trigger followed by a simple method-invoking + * router. + *

+ * See the 'cronOddEvenDemo.xml' configuration file for more detail. + * * @author Mark Fisher */ public class CronOddEvenDemo { diff --git a/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/IntervalOddEvenDemo.java b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/IntervalOddEvenDemo.java index 5456ec1960..7fba9686ed 100644 --- a/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/IntervalOddEvenDemo.java +++ b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/IntervalOddEvenDemo.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2008 the original author or authors. + * Copyright 2002-2009 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,6 +19,12 @@ package org.springframework.integration.samples.oddeven; import org.springframework.context.support.ClassPathXmlApplicationContext; /** + * Demonstrates a method-invoking inbound Channel Adapter with an + * Interval-based polling trigger followed by a simple method-invoking + * router. + *

+ * See the 'intervalOddEvenDemo.xml' configuration file for more detail. + * * @author Mark Fisher */ public class IntervalOddEvenDemo { diff --git a/spring-integration-samples/oddeven/src/main/resources/org/springframework/integration/samples/oddeven/cronOddEvenDemo.xml b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/cronOddEvenDemo.xml similarity index 100% rename from spring-integration-samples/oddeven/src/main/resources/org/springframework/integration/samples/oddeven/cronOddEvenDemo.xml rename to spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/cronOddEvenDemo.xml diff --git a/spring-integration-samples/oddeven/src/main/resources/org/springframework/integration/samples/oddeven/intervalOddEvenDemo.xml b/spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/intervalOddEvenDemo.xml similarity index 100% rename from spring-integration-samples/oddeven/src/main/resources/org/springframework/integration/samples/oddeven/intervalOddEvenDemo.xml rename to spring-integration-samples/oddeven/src/main/java/org/springframework/integration/samples/oddeven/intervalOddEvenDemo.xml