Commit Graph

207 Commits

Author SHA1 Message Date
Mark Fisher
1ce101f2bf Moved MessagePublishingErrorHandler from 'scheduling' package to 'channel'. 2008-08-14 15:47:12 +00:00
Mark Fisher
76762ed960 Moved DirectChannel and PublishSubscribeChannels to the 'channel' pacakge. 2008-08-14 15:40:13 +00:00
Mark Fisher
add3d6a121 Moved PollingDispatcher from the dispatcher package to the bus package. It depends on the scheduling and channel packages. 2008-08-14 15:28:27 +00:00
Mark Fisher
8389842976 Removed CollectionSplitter. 2008-08-14 15:02:45 +00:00
Mark Fisher
ee3ea753a9 Moved all channel parsers into the org.springframework.integration.config package. 2008-08-14 14:57:22 +00:00
Mark Fisher
1cc799b438 AbstractDispatcher now uses a Set instead of List (INT-335). 2008-08-14 12:58:21 +00:00
Mark Fisher
3e15df93ed MessageDispatcher now extends SubscribableSource. The 'addTarget' and 'removeTarget' methods have been replaced with 'subscribe' and 'unsubscribe' respectively. 2008-08-14 11:53:24 +00:00
Mark Fisher
234c87da1d Removed AbstractMethodInvokingAdapter and AbstractMessageHandlerAdapter (has been replaced by the new AbstractMessageHandler). The MethodInvokingPayloadTransformer now uses a NameResolvingMethodInvoker. 2008-08-14 10:34:26 +00:00
Mark Fisher
a99b03c387 SimpleMessagingGateway's default 'replyTimeout' is now -1 for "indefinite" (matches the default of MessageExchangeTemplate). 2008-08-14 10:29:29 +00:00
Mark Fisher
0d49689821 Extracted message-to-args mapping logic from AbstractMessageHandler to MethodArgumentMessageMapper. Defined a separate abstract method in AbstractMessageHandler for post-processing a return value that is already a Message. DefaultMethodInvoker catches an IllegalArgumentException in case the Method instance no longer matches after a Proxy and "resets" the correct Method if it can be determined from the 'methodName' property. Replaced AnnotationMethodTransformerAdapter with TransformerMessageHandler. 2008-08-13 23:31:18 +00:00
Mark Fisher
0f93cab8cc Factored out DefaultEndpoint's generic logic to AbstractEndpoint. 2008-08-13 18:10:38 +00:00
Mark Fisher
51f8beffba Removed AbstractEndpoint. 2008-08-13 17:12:21 +00:00
Mark Fisher
ee35a37f50 Renamed AbstractHandlerEndpointParser to AbstractMessageEndpointParser. 2008-08-13 16:50:25 +00:00
Mark Fisher
9669467f98 Renamed SimpleEndpoint to DefaultEndpoint. 2008-08-13 16:31:45 +00:00
Mark Fisher
616eba8701 Added more tests. 2008-08-13 16:17:11 +00:00
Mark Fisher
e16dce8aba Removed the HandlerEndpoint (now replaced by SimpleEndpoint). 2008-08-13 15:49:24 +00:00
Mark Fisher
a3f6254856 AbstractHandlerEndpointParser's default endpoint type is now SimpleEndpoint instead of HandlerEndpoint. The latter will be removed shortly. 2008-08-13 15:03:45 +00:00
Mark Fisher
5c9ac92f6b Removed the registerHandler() method from MessageBus. 2008-08-13 01:16:32 +00:00
Mark Fisher
f56334f06b Removed TargetEndpoint. 2008-08-12 23:31:48 +00:00
Mark Fisher
744db9e5a1 Added namespace support for the WireTap (INT-323). 2008-08-12 22:49:27 +00:00
Mark Fisher
1e8fa31e9d WireTap now accepts any MessageTarget for sending intercepted Messages instead of requiring a MessageChannel. 2008-08-12 21:45:25 +00:00
Mark Fisher
d212fb51b8 MethodInvokingSource and MethodInvokingTarget both accept a 'method' parameter, so that when the actual Method is known (e.g. annotation-driven post-processing), it can be set directly. The 'methodName' is still supported, because it is necessary for XML-based configuration (INT-334). 2008-08-12 21:13:58 +00:00
Mark Fisher
ead292fd1f The @MessageTarget annotation is now used with @ChannelAdapter (like @PollableSource) instead of @MessageEndpoint. 2008-08-12 20:49:55 +00:00
Mark Fisher
d0581e881f EndpointInterceptor postHandle now accepts the replyMessage only. InterceptingMessageHandler has been renamed MessageHandlerDecorator. Either the decorator or the interceptor's aroundHandle method may be removed since they are redundant. 2008-08-12 17:32:51 +00:00
Mark Fisher
ac770ce178 MessageTarget is now sufficient for the replyTarget (no longer requires MessageChannel), so for example it can now support the temporary returnAddress set by the MessageExchangeTemplate. Also, the 'outputChannel' is given precedence while 'returnAddress' is used as a fallback. This is consistent with the other Message-handling endpoint types (INT-332, INT-333). 2008-08-12 11:52:25 +00:00
Mark Fisher
56f5a9374c MethodInvokingTarget now extends AbstractMessageHandler instead of AbstractMessageHandlerAdapter. SplitterMessageHandlerCreator no longer requires configuration of the "outputChannel" property. 2008-08-12 11:30:18 +00:00
Mark Fisher
178c438159 Refactored RouterMessageHandlerAdapter (now RouterMessageHandler). Router endpoints are now SimpleEndpoint instances. 2008-08-12 03:44:23 +00:00
Mark Fisher
f91ec6f48f Moved aggregator and splitter classes into separate packages (instead of 'router'). 2008-08-12 00:59:15 +00:00
Mark Fisher
c2e6be171d SplitterMessageHandler replaces SplitterMessageHandlerAdapter. 2008-08-12 00:22:02 +00:00
Mark Fisher
c63f65f256 Preventing copy of ID or timestamp header attributes. 2008-08-12 00:01:20 +00:00
Mark Fisher
3d4f32de2d Added method validation and added check for Message-typed parameter. 2008-08-11 20:45:59 +00:00
Mark Fisher
df0653f8cd Added new SplitterMessageHandler and refactored SplitterParser to use that handler implementation. 2008-08-11 20:25:44 +00:00
Mark Fisher
215e10a6eb Added test timeouts for Message reception. 2008-08-11 20:16:55 +00:00
Mark Fisher
8732ac26b4 Updated service-activator to use new SimpleEndpoint and DefaultMessageHandler. Modified EndpointInterceptor for preHandle/aroundHandle/postHandle with access-to and return-values-for the request/reply Messages. 2008-08-11 19:39:42 +00:00
Mark Fisher
f2761d8c44 Removed the getMessageExchangeTemplate() method from the MessageEndpoint interface. 2008-08-11 15:41:09 +00:00
Mark Fisher
6f930ff27b Moved the ID from Message to MessageHeaders. 2008-08-11 15:30:37 +00:00
Mark Fisher
e6c63cfb0b SimpleEndpoint provides the ChannelRegistry reference to its handler if that handler implements ChannelRegistryAware. 2008-08-11 14:09:57 +00:00
Mark Fisher
9a1714fae4 Added new SimpleEndpoint implementation. This is the first step of a gradual migration process (i.e. it is not yet in use). Also added the MessageEndpointReplyException. 2008-08-09 00:26:41 +00:00
Mark Fisher
a7acc62371 Added CompositeMessage and added the 'nextTarget' header to MessageHeaders (and the corresponding methods in MessageBuilder). 2008-08-08 21:30:49 +00:00
Iwein Fuld
e88776463a tested and fixed onFailure for FtpSource 2008-08-08 14:56:51 +00:00
Mark Fisher
52f61b3d88 The PollingDispatcher's default receiveTimeout is now -1 for indefinite blocking. 2008-08-06 19:43:24 +00:00
Mark Fisher
528f5e6341 The @Polled annotation has been renamed @Poller (it no longer applies directly to a method). 2008-08-05 21:30:44 +00:00
Mark Fisher
1e82a8d568 Removed SourceEndpoint. Also, MessageExchangeTemplate now wraps any Exception thrown in source.receive() in a MessagingException. 2008-08-05 21:11:43 +00:00
Mark Fisher
8274dfc428 Removed the @MessageSource method-level annotation and added @Pollable as its replacement. Also added the @ChannelAdapter class-level annotation (refactoring to remove SourceEndpoint). 2008-08-05 20:02:52 +00:00
Mark Fisher
bbd7a12a4e MethodInvokingSource now returns null when the method invocation result is null. 2008-08-05 19:50:14 +00:00
Mark Fisher
0662b3edee Changed number of requests for multipleMessagesWithResponseCorrelator test. 2008-08-05 17:04:05 +00:00
Mark Fisher
82d353230b Increased test latch wait time. 2008-08-05 16:45:37 +00:00
Mark Fisher
a0b603b0fe The <poller/> element now accepts the "initial-delay" and "fixed-rate" (boolean) attributes (INT-326). 2008-08-05 16:37:32 +00:00
Mark Fisher
8e1c52b312 The MessageExchangeTemplate's receiveAndForward() method now throws the original Exception if it is a MessagingException. If it is not a MessagingException, then it will be wrapped within a new MessagingException (INT-325). 2008-08-05 15:31:22 +00:00
Mark Fisher
d929797867 Setting inputChannelName instead of source when <poller/> is not provided so that auto-create works (it does not apply with <poller/>). 2008-08-05 03:04:21 +00:00