diff --git a/spring-integration-core/src/main/java/org/springframework/integration/samples/Logger.java b/spring-integration-core/src/main/java/org/springframework/integration/samples/Logger.java deleted file mode 100644 index abc0416aff..0000000000 --- a/spring-integration-core/src/main/java/org/springframework/integration/samples/Logger.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Copyright 2002-2007 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.integration.samples; - -import org.springframework.integration.endpoint.annotation.Subscriber; - -/** - * @author Mark Fisher - */ -public class Logger { - - @Subscriber(channel="quotes") - public void log(Object o) { - System.out.println(o); - } - -} diff --git a/spring-integration-core/src/main/java/org/springframework/integration/samples/Quote.java b/spring-integration-core/src/main/java/org/springframework/integration/samples/Quote.java deleted file mode 100644 index 61472566eb..0000000000 --- a/spring-integration-core/src/main/java/org/springframework/integration/samples/Quote.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2002-2007 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.integration.samples; - -import java.math.BigDecimal; - -/** - * @author Mark Fisher - */ -public class Quote { - - private String ticker; - - private BigDecimal price; - - public Quote(String ticker, BigDecimal price) { - this.ticker = ticker; - this.price = price; - } - - public String toString() { - return ticker + ": " + price; - } - -} diff --git a/spring-integration-core/src/main/java/org/springframework/integration/samples/QuotePublisher.java b/spring-integration-core/src/main/java/org/springframework/integration/samples/QuotePublisher.java deleted file mode 100644 index cc8df7f81f..0000000000 --- a/spring-integration-core/src/main/java/org/springframework/integration/samples/QuotePublisher.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2002-2007 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.integration.samples; - -import java.math.BigDecimal; -import java.math.RoundingMode; -import java.util.Random; - -import org.springframework.integration.endpoint.annotation.MessageEndpoint; -import org.springframework.integration.endpoint.annotation.Polled; - -/** - * @author Mark Fisher - */ -@MessageEndpoint(defaultOutput="quotes") -public class QuotePublisher { - - @Polled(period=300) - public Quote getQuote() { - BigDecimal price = new BigDecimal(new Random().nextDouble() * 100); - return new Quote("SOA", price.setScale(2, RoundingMode.HALF_EVEN)); - } - -} diff --git a/spring-integration-core/src/main/java/org/springframework/integration/samples/StockQuoteDemo.java b/spring-integration-core/src/main/java/org/springframework/integration/samples/StockQuoteDemo.java deleted file mode 100644 index 37628b59c8..0000000000 --- a/spring-integration-core/src/main/java/org/springframework/integration/samples/StockQuoteDemo.java +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright 2002-2007 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.springframework.integration.samples; - -import org.springframework.context.support.AbstractApplicationContext; -import org.springframework.context.support.ClassPathXmlApplicationContext; - -/** - * @author Mark Fisher - */ -public class StockQuoteDemo { - - public static void main(String[] args) throws Exception { - AbstractApplicationContext context = new ClassPathXmlApplicationContext("stockQuoteDemo.xml", StockQuoteDemo.class); - context.start(); - System.in.read(); - } -} diff --git a/spring-integration-core/src/main/java/org/springframework/integration/samples/stockQuoteDemo.xml b/spring-integration-core/src/main/java/org/springframework/integration/samples/stockQuoteDemo.xml deleted file mode 100644 index 9f5d379d9c..0000000000 --- a/spring-integration-core/src/main/java/org/springframework/integration/samples/stockQuoteDemo.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - -