Commit Graph

2293 Commits

Author SHA1 Message Date
Mark Fisher
4d19a02f15 Added PollingSourceEndpoint, removed PollingSourceAdapter, and source-adapter parsers only parse the Source itself. 2008-04-23 23:47:02 +00:00
Mark Fisher
9f3bc80949 Factored out the common target endpoint type to enable change to 'target-endpoint' and 'handler-endpoint'. 2008-04-23 14:18:01 +00:00
Mark Fisher
9fd30d1ed4 Moved awareness of SynchronousChannel out of the MessageBus and into the SubscriptionManager. 2008-04-23 13:37:27 +00:00
Mark Fisher
bf0f8b16ec SimpleChannel is now QueueChannel. Also added RendezvousChannel for the zero-capacity SynchronousQueue-based version. 2008-04-22 20:26:19 +00:00
Mark Fisher
4b01a3a09c The <endpoint/> element now expects a "handler" attribute instead of "handler-ref". 2008-04-22 18:17:05 +00:00
Mark Fisher
cb3c4fbdc3 Removed support for <handler/> sub-element for <endpoint/> since the 'handler-ref' attribute is sufficient. 2008-04-22 17:44:23 +00:00
Mark Fisher
3d63406053 MessageBus now registers endpoints and source adapters (and starts if its autoStartup property is set to "true") after receiving a ContextRefreshedEvent rather than the excessively eager start during the 'setApplicationContext' callback (INT-196). 2008-04-22 16:56:27 +00:00
Mark Fisher
c9cdff0aee Added removeAttribute() and removeProperty() methods (INT-203, INT-204). 2008-04-22 13:40:42 +00:00
Mark Fisher
e0563a6173 Checking for null prior to setting the channelRegistry on the endpoint's handler (short term fix for INT-202). 2008-04-21 20:51:38 +00:00
Mark Fisher
d30f3230b0 Simplified Message dispatching. Removed MessageRetriever and MessageDistributor (and the "default" implementations). Added SimpleDispatcher and PollingDispatcher. Added the SubscribableSource interface and a SubscriptionManager to simplify the coordination of dispatchers within the MessageBus. These changes also lay the groundwork for further refactoring of the various Source and SourceAdapter implementations. 2008-04-18 21:26:31 +00:00
Mark Fisher
0bd9ea9255 TargetEndpoint now returns false when one of its MessageSelectors rejects a Message rather than throwing an Exception. Added Source, BlockingSource, and BlockingTarget interfaces. MessageChannel now extends BlockingSource and BlockingTarget. 2008-04-17 21:06:14 +00:00
Mark Fisher
0f6bd60ee0 Added Target interface and split DefaultMessageEndpoint into TargetEndpoint and HandlerEndpoint. All "one-way" adapters now implement Target instead of MessageHandler, the ConcurrentHandler is now ConcurrentTarget, and the MessageDispatcher also operates on Targets rather than MessageHandlers. 2008-04-17 17:25:56 +00:00
Mark Fisher
e9673586c4 On destruction, ConcurrentHandler calls shutdownNow() on its Executor rather than shutdown(). 2008-04-16 19:50:32 +00:00
Mark Fisher
a0072b3e66 DefaultMessageEndpoint constructor now requires a MessageHandler. The endpoint no longer invokes Lifecycle methods on the MessageHandler. 2008-04-16 19:14:26 +00:00
Mark Fisher
9710edaa3c If no ErrorHandler is available, errors will be logged at WARN level (INT-138). 2008-04-16 18:47:12 +00:00
Mark Fisher
7edfc96f5e MessageHandlingExceptions (other than selector-rejection, handler-not-running, and executor-rejection) are now propagated from DefaultMessageDistributor (INT-184). 2008-04-16 18:07:14 +00:00
Mark Fisher
550a674850 committing AbstractSourceAdapter manually (missed by plugin) 2008-04-16 16:38:44 +00:00
Mark Fisher
b5e01b447a Providing better separation between PollableSource and PollingSourceAdapter (work in progress). 2008-04-16 16:31:24 +00:00
Marius Bogoevici
19aad42c9e INT-198 Ensure that the sequence size and sequence number are copied. 2008-04-15 22:26:47 +00:00
Mark Fisher
ffacaabf64 Increased timeout value for retrieval tests that should occur within the allotted timeout. 2008-04-13 15:55:54 +00:00
Mark Fisher
167da2f28c Increased delay for publishing to the MessageStore when testing blocking retrieval that should timeout. 2008-04-12 16:12:28 +00:00
Mark Fisher
18b096f69f Now enforcing that a message endpoint must contain a handler method (INT-177). 2008-04-12 16:02:20 +00:00
Mark Fisher
3ef001545f Added test for Splitter annotation now that the output channel is propagated from @MessageEndpoint. 2008-04-11 22:25:21 +00:00
Mark Fisher
1835a9e0ed Added the correlationId, expiration, priority, and sequence number to MessageHeader's toString(). 2008-04-11 19:21:01 +00:00
Mark Fisher
88ac6af364 The @Splitter annotation no longer has a "channel" attribute. Instead it uses the @MessageEndpoint's "defaultOutput" attribute (INT-189). 2008-04-11 19:13:45 +00:00
Mark Fisher
b7517caaba SplitterMessageHandlerAdapter no longer does unnecessary type-check prior to method invocation (INT-190). 2008-04-11 16:33:21 +00:00
Mark Fisher
6842be8e40 MessagePublishingErrorHandler is no longer set on a Message Endpoint that is itself subscribing to the "errorChannel". 2008-04-11 15:32:05 +00:00
Mark Fisher
87e5edb0dc PollingSourceAdapter does schedule tasks when connected to a SynchronousChannel (INT-187). 2008-04-11 12:18:03 +00:00
Mark Fisher
64d46f7e67 When a PollableSourceAdapter has a SynchronousChannel, it now registers its source with that channel (and does not start any tasks with the scheduler). This is a temporary implementation of this feature likely to be handled differently after continued source refactoring. 2008-04-11 04:33:26 +00:00
Mark Fisher
ffb6266d54 Increased send timeout value in test. 2008-04-11 02:47:39 +00:00
Mark Fisher
d634f38d10 A rethrowing Exception handler is provided for any Endpoint subscribed to a SynchronousChannel. 2008-04-11 02:37:51 +00:00
Marius Bogoevici
7ac62e7ee1 Completing revision 485 - missing from previous commit. 2008-04-11 02:00:19 +00:00
Marius Bogoevici
6226d2c06e [INT-140] Adds support for @CompletionStrategy annotation and supports a POJO completion strategy via namespace 2008-04-11 01:56:45 +00:00
Mark Fisher
bc9864ffeb SynchronousChannel receives a Message from its source rather than an Object. 2008-04-10 23:40:46 +00:00
Mark Fisher
069e7672e3 PollableSource now returns a Message rather than an Object from poll(). Now PollableSource implementations may use a MessageMapper, but the "source adapter" no longer does. 2008-04-10 21:40:41 +00:00
Mark Fisher
6e30173509 PollableSource no longer accepts a "limit" argument in its poll() method (INT-181). 2008-04-09 16:33:16 +00:00
Mark Fisher
fec6dec258 MessageHandlingException and MessageDeliveryException now require the failed/undelivered Message as a constructor argument. 2008-04-09 00:18:56 +00:00
Mark Fisher
a6392bd142 Updated Import-Package and Export-Package for each MANIFEST.MF (INT-166). 2008-04-07 15:22:04 +00:00
Mark Fisher
61631c365b MessageEndpointAnnotationPostProcessor no longer sets a default Schedule when creating a Subscription (INT-171). 2008-04-07 13:25:50 +00:00
Mark Fisher
8ea5f012f3 MessageBus now manages the subscription of a MessageEndpoint to a SynchronousChannel if that endpoint's Subscription object contains a NULL Schedule. 2008-04-04 20:56:12 +00:00
Mark Fisher
5821ac23a2 Added SynchronousChannel (INT-170). 2008-04-04 16:58:57 +00:00
Mark Fisher
11d934c4a8 The 'method' and 'attributes' properties are now final. 2008-04-03 21:52:46 +00:00
Mark Fisher
eb8b5666c8 RouterMessageHandlerAdapter now sets the ChannelRegistry on its target Object if that target implements ChannelRegistryAware, and DefaultMessageEndpoint now sets the ChannelRegistry on any ChannelRegistryAware handler (INT-125). 2008-04-03 21:44:56 +00:00
Mark Fisher
07edd8f423 MessageEndpointAnnotationPostProcessor now handles proxies and also detects inherited @MessageEndpoint annotations (INT-160). 2008-04-03 20:31:24 +00:00
Mark Fisher
70e365f4dd SimpleMethodInvoker now delegates to an ArgumentConvertingMethodInvoker. 2008-04-03 18:15:31 +00:00
Mark Fisher
d3b28c7da6 MessageBus now properly registers error-channel set by 'setErrorChannel' (INT-164). DefaultChannelRegistry no longer has any awareness of an "error channel". 2008-04-03 12:35:37 +00:00
Mark Fisher
cbf63d7e90 MessageEndpointAnnotationPostProcessor now provides the 'ChannelRegistry' to any Object with a @MessageEndpoint annotation that implements ChannelRegistryAware (INT-125). 2008-04-02 21:34:31 +00:00
Mark Fisher
945d3606d0 Added "Bundle-Name" to MANIFEST.MF files (INT-165). 2008-04-02 16:14:00 +00:00
Mark Fisher
2ab12a9315 Returning from registerWithDispatcher(..) if dispatcher is null (INT-164). 2008-04-02 11:57:31 +00:00
Mark Fisher
6e845339ad Committing the initial version of the FTP source adapter (INT-153). 2008-04-01 01:38:51 +00:00