From dea26b561fce7f22498c992eec2829e48ae78a98 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Mon, 3 Nov 2008 15:34:24 +0000 Subject: [PATCH] Updated class names --- spring-integration-reference/src/event.xml | 6 +++--- spring-integration-reference/src/file.xml | 18 +++++++++--------- .../src/httpinvoker.xml | 4 ++-- spring-integration-reference/src/jms.xml | 2 +- spring-integration-reference/src/mail.xml | 6 +++--- spring-integration-reference/src/rmi.xml | 2 +- spring-integration-reference/src/stream.xml | 10 +++++----- 7 files changed, 24 insertions(+), 24 deletions(-) diff --git a/spring-integration-reference/src/event.xml b/spring-integration-reference/src/event.xml index fe0ef8656c..fe873450f8 100644 --- a/spring-integration-reference/src/event.xml +++ b/spring-integration-reference/src/event.xml @@ -5,15 +5,15 @@ Spring Integration also provides support for inbound and outbound ApplicationEvents. To receive events and send to a channel, simply define an instance of Spring Integration's - ApplicationEventInboundChannelAdapter. This class in an implementation of Spring's + ApplicationEventListeningChannelAdapter. This class in an implementation of Spring's ApplicationListener interface. By default it will pass all received events as Spring Integration Messages. To limit based on the type of event, configure the list of event types that you want to receive with the 'eventTypes' property. To send Spring ApplicationEvents, create an instance of the - ApplicationEventPublishingMessageConsumer and register it within an endpoint. This - implementation of the MessageConsumer interface also implements Spring's + ApplicationEventPublishingMessageHandler and register it within an endpoint. This + implementation of the MessageHandler interface also implements Spring's ApplicationEventPublisherAware interface and thus acts as a bridge between Spring Integration Messages and ApplicationEvents. diff --git a/spring-integration-reference/src/file.xml b/spring-integration-reference/src/file.xml index 5c45f99b32..fed587a8e1 100644 --- a/spring-integration-reference/src/file.xml +++ b/spring-integration-reference/src/file.xml @@ -15,14 +15,14 @@ transform files into strings or byte arrays. - This section will explain the workings of PollableFileSource, FileWritingMessageConsumer and how to configure them as beans. Also the support for dealing with files through file specific implementations of Transformer will be discussed. Finally the file specific namespace will be explained. + This section will explain the workings of PollableFileSource, FileWritingMessageHandler and how to configure them as beans. Also the support for dealing with files through file specific implementations of Transformer will be discussed. Finally the file specific namespace will be explained.
Reading Files - A PollableFileSource can be used to consume files from the filesystem. This is an implementation of PollableSource that creates messages from a file system directory. + A PollableFileSource can be used to consume files from the filesystem. This is an implementation of MessageSource that creates messages from a file system directory. ]]> @@ -79,7 +79,7 @@ http://www.springframework.org/schema/integration/file/spring-integration-file-1.0.xsd"> ]]> Within this namespace you can reduce the PollableFileSource and wrap - it in a InboundChannelAdapter like this: + it in an InboundChannelAdapter like this: (1) Writing files To write messages to the file system you can use a - FileWritingMessageConsumer + FileWritingMessageHandler . This class can deal with File or byte[] payloads and otherwise - invokes the toString() method on the payload to estabish the contents + invokes the toString() method on the payload to establish the contents of the File. In its simplest form the - FileWritingMessageConsumer + FileWritingMessageHandler just needs a parent directory for the files. @@ -119,13 +119,13 @@ To make things easier you can configure the - FileWritingMessageConsumer as part of an outbound channel adapter + FileWritingMessageHandler as part of an outbound channel adapter using the namespace. ]]> If you have more elaborate requirements to the payload to file - conversion you could extend the FileWritingMessageConsumer, but a + conversion you could extend the FileWritingMessageHandler, but a much better option is to rely on a Transformer @@ -138,7 +138,7 @@ way around you need to do some work. Contrary to PollableFileSource and to a lesser extent - FileWritingMessageConsumer + FileWritingMessageHandler it is very likely that you will need your own mechanism to get the job done. For this you can implement the diff --git a/spring-integration-reference/src/httpinvoker.xml b/spring-integration-reference/src/httpinvoker.xml index a3d6b94c02..703126e8e9 100644 --- a/spring-integration-reference/src/httpinvoker.xml +++ b/spring-integration-reference/src/httpinvoker.xml @@ -62,8 +62,8 @@ class="org.springframework.integration.httpinvoker.HttpInvokerOutboundGateway"> ]]> - The outbound gateway is a MessageConsumer and can therefore be registered with - either a PollingConsumerEndpoint or SubscribingConsumerEndpoint. + The outbound gateway is a MessageHandler and can therefore be registered with + either a PollingConsumer or EventDrivenConsumer. The URL must match that defined by an inbound HttpInvoker Gateway as described in the previous section.
diff --git a/spring-integration-reference/src/jms.xml b/spring-integration-reference/src/jms.xml index 977d8ca1fd..0cf9ecf8df 100644 --- a/spring-integration-reference/src/jms.xml +++ b/spring-integration-reference/src/jms.xml @@ -30,7 +30,7 @@
Outbound Channel Adapter - The JmsSendingMessageConsumer implements the MessageConsumer + The JmsSendingMessageHandler implements the MessageHandler interface and is capable of converting Spring Integration Messages to JMS messages and then sending to a JMS destination. It requires either a 'jmsTemplate' reference or both 'connectionFactory' and 'destination' references (again, the 'destinationName' may be provided in place of the 'destination). As with the diff --git a/spring-integration-reference/src/mail.xml b/spring-integration-reference/src/mail.xml index 31bc490dce..df20eadf0b 100644 --- a/spring-integration-reference/src/mail.xml +++ b/spring-integration-reference/src/mail.xml @@ -7,12 +7,12 @@ Mail-Sending Channel Adapter Spring Integration provides support for outbound email with the - MailSendingMessageConsumer. It delegates to a configured instance of Spring's + MailSendingMessageHandler. It delegates to a configured instance of Spring's JavaMailSender: JavaMailSender mailSender = (JavaMailSender) context.getBean("mailSender"); - MailSendingMessageConsumer mailSendingConsumer = new MailSendingMessageConsumer(mailSender); - MailSendingMessageConsumer various mapping strategies use Spring's + MailSendingMessageHandler mailSendingHandler = new MailSendingMessageHandler(mailSender); + MailSendingMessageHandler various mapping strategies use Spring's MailMessage abstraction. If the received Message's payload is already a MailMessage instance, it will be sent directly. Therefore, it is generally recommended to precede this consumer with a Transformer for non-trivial MailMessage construction requirements. However, a few simple diff --git a/spring-integration-reference/src/rmi.xml b/spring-integration-reference/src/rmi.xml index e588d23259..1a5b332209 100644 --- a/spring-integration-reference/src/rmi.xml +++ b/spring-integration-reference/src/rmi.xml @@ -6,7 +6,7 @@
Introduction - This Chapter explains how to use RMI specific channel adapters to distribute a system over multiple jvm's. The first section will deal with sending messages over RMI. The second section shows how to receive messages over RMI. The last section shows how to define rmi channel adapters through the namespace support + This Chapter explains how to use RMI specific channel adapters to distribute a system over multiple JVMs. The first section will deal with sending messages over RMI. The second section shows how to receive messages over RMI. The last section shows how to define rmi channel adapters through the namespace support
diff --git a/spring-integration-reference/src/stream.xml b/spring-integration-reference/src/stream.xml index 333faca913..1bdf613f55 100644 --- a/spring-integration-reference/src/stream.xml +++ b/spring-integration-reference/src/stream.xml @@ -36,19 +36,19 @@
Writing to streams - For target streams, there are also two implementations: ByteStreamWritingMessageConsumer and - CharacterStreamWritingMessageConsumer. Each requires a single constructor argument - + For target streams, there are also two implementations: ByteStreamWritingMessageHandler and + CharacterStreamWritingMessageHandler. Each requires a single constructor argument - OutputStream for byte streams or Writer for character streams, and each provides a second constructor that adds the optional 'bufferSize'. Since both of these - ultimately implement the MessageConsumer interface, they can be referenced from a + ultimately implement the MessageHandler interface, they can be referenced from a channel-adapter configuration as will be described in more detail in . - + - + ]]>