Fixes INT-243 - update samples
This commit is contained in:
@@ -39,7 +39,6 @@ public class CafeDemo {
|
||||
else {
|
||||
context = new ClassPathXmlApplicationContext("cafeDemo.xml", CafeDemo.class);
|
||||
}
|
||||
context.start();
|
||||
Cafe cafe = (Cafe) context.getBean("cafe");
|
||||
DrinkOrder order = new DrinkOrder();
|
||||
Drink hotDoubleLatte = new Drink(DrinkType.LATTE, 2, false);
|
||||
|
||||
@@ -29,7 +29,6 @@ public class BinaryFileCopyDemo {
|
||||
FileCopyDemoCommon.setupDirectories();
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-binary.xml",
|
||||
BinaryFileCopyDemo.class);
|
||||
context.start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ public class FileBasedFileCopyDemo {
|
||||
FileCopyDemoCommon.setupDirectories();
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-file.xml",
|
||||
FileBasedFileCopyDemo.class);
|
||||
context.start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -30,7 +30,6 @@ public class TextFileCopyDemo {
|
||||
FileCopyDemoCommon.setupDirectories();
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("fileCopyDemo-text.xml",
|
||||
TextFileCopyDemo.class);
|
||||
context.start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -32,7 +32,6 @@ public class HelloWorldDemo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
AbstractApplicationContext context = new ClassPathXmlApplicationContext("helloWorldDemo.xml", HelloWorldDemo.class);
|
||||
context.start();
|
||||
ChannelRegistry channelRegistry = (ChannelRegistry) context.getBean(MessageBusParser.MESSAGE_BUS_BEAN_NAME);
|
||||
MessageChannel inputChannel = channelRegistry.lookupChannel("inputChannel");
|
||||
MessageChannel outputChannel = channelRegistry.lookupChannel("outputChannel");
|
||||
|
||||
@@ -26,7 +26,6 @@ public class OddEvenDemo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
AbstractApplicationContext context = new ClassPathXmlApplicationContext("oddEvenDemo.xml", OddEvenDemo.class);
|
||||
context.start();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -26,6 +26,5 @@ public class QuoteDemo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
AbstractApplicationContext context = new ClassPathXmlApplicationContext("quoteDemo.xml", QuoteDemo.class);
|
||||
context.start();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ public class WebServiceDemo {
|
||||
|
||||
public static void main(String[] args) {
|
||||
ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("temperatureConversion.xml", WebServiceDemo.class);
|
||||
context.start();
|
||||
|
||||
// Compose the XML message according to the server's schema
|
||||
String requestMessage =
|
||||
|
||||
Reference in New Issue
Block a user