Commit Graph

177 Commits

Author SHA1 Message Date
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
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
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
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
dd6635b86e RetrievalBlockingMessageStore now accepts a target MessageStore in its constructor. 2008-03-29 15:34:12 +00:00
Mark Fisher
51d080a058 Added ResponseCorrelator and RetrievalBlockingMessageStore (INT-143). 2008-03-28 20:23:06 +00:00
Mark Fisher
ee5e61da44 Added MessageStore strategy and SimpleMessageStore implementation for in-memory storage with a BoundedHashMap. 2008-03-27 19:11:54 +00:00
Marius Bogoevici
c602050df6 Adds the 'timeout' attribute on <aggregator/> (INT-139) 2008-03-07 06:18:23 +00:00
Mark Fisher
8b7c1c3c35 Added the MessagePriority enum (INT-141). 2008-03-05 21:11:11 +00:00
Mark Fisher
753ce56354 Added @Concurrency Annotation (INT-118). 2008-03-05 20:42:51 +00:00
Mark Fisher
4d6292b35a Added test for a <priority-channel/> with "datatype" attribute. Also, the MessageSelectingInterceptor now provides the rejected Message to the MessageDeliveryException. 2008-03-04 22:46:22 +00:00
Mark Fisher
1bed4b19e9 Added namespace support for <priority-channel/> (INT-131). 2008-03-04 22:24:55 +00:00
Mark Fisher
0d8dc5ba81 ChannelPurger now accepts more than one MessageChannel (with a varargs constructor). 2008-03-04 18:54:20 +00:00
Mark Fisher
41e6befa23 MessageEndpointAnnotationPostProcessor now requires 'messageBus' as a constructor-arg (rather than setter). 2008-03-04 17:25:58 +00:00
Marius Bogoevici
f987d920aa Add test method reflecting the fact that the only type of parameter that is supported by AggregatorAdapter is Collection<?> and not one of the Collection subclasses. This might change in a future version. 2008-03-04 16:44:18 +00:00
Mark Fisher
e37e22eb76 AggregatorAdapter throws a MessagingConfigurationException if the method is invalid (wrong name provided or non-conforming signature). The IllegalArgumentExceptions are only thrown in the case of a null object, method, or methodName. 2008-03-04 16:24:21 +00:00
Mark Fisher
0d1843211a Using 'spring-integration-core-1.0.xsd' in 'testAnnotatedAggregator.xml' and added tests for wrong parameter counts in AggregatorAdapterTests. 2008-03-04 16:03:29 +00:00
Marius Bogoevici
2428a8390a Add @Aggregator annotation for annotating methods that can aggregate messages (INT-94). 2008-03-04 05:23:06 +00:00
Marius Bogoevici
03f4c8e1ea Adds AggregatorAdapter and support for the 'method' attribute in <aggregtor> elements (INT-137). Target methods must conform with a signature pattern as follows: ReturnType methodName (Collection<CollectionType> args).
If CollectionType is Message or any of its descendants (including parametrized types), the aggregator will pass the collection of messages to be aggregated 'as is', leaving to the target method to extract the payloads. If CollectionType is non-Message, the payloads will be extracted and passed to the target collection. 
If the result of the method call is not a Message, it will be wrapped in a GenericMessage.
2008-03-03 23:21:39 +00:00
Mark Fisher
1e19a96a38 Added WireTap (INT-138). 2008-03-03 21:56:59 +00:00
Mark Fisher
ef1a0b2af5 Adjusted timing for test. 2008-02-28 00:23:01 +00:00
Mark Fisher
466fe7a761 formatting 2008-02-27 20:17:00 +00:00
Mark Fisher
604b768625 Subscription is now immutable (INT-134). 2008-02-27 19:25:10 +00:00
Marius Bogoevici
44cb3e17a1 adds support for an <aggregator> element in the integration namespace (INT-95). Currently supports only references to beans implementing the Aggregator interface. The 'method' attribute can be defined, but it is not currently in use. 2008-02-27 19:15:06 +00:00
Marius Bogoevici
559d858e3e added testCorrelationIdCopiedIfMessageCorrelationIdAvailable, to capture this default behaviour in the MessageHandlers 2008-02-27 18:52:23 +00:00
Mark Fisher
84e1b1df08 Added spring-integration-1.0.xsd alongside spring-integration-adapters-1.0.xsd. Renamed the previous spring-integration-1.0.xsd to spring-integration-core-1.0.xsd. 2008-02-27 03:21:54 +00:00
Mark Fisher
d2580a3b0b Major refactoring of AggregatingMessageHandler and related classes. 2008-02-27 02:33:44 +00:00
Mark Fisher
17def0e904 DefaultMessageEndpoint now sets the reply Message's correlationId to the original Message's id by default (INT-130). 2008-02-26 05:09:32 +00:00
Mark Fisher
82cb7bcb62 Added PriorityChannel (INT-115). 2008-02-26 04:11:10 +00:00
Mark Fisher
51d02ee8ad ReplyHandler is now configurable on the DefaultMessageEndpoint. The <endpoint/> element also accepts a 'reply-handler' attribute (INT-129). 2008-02-26 02:35:09 +00:00
Mark Fisher
abedfb0b3d Using the header-copying constructor when creating Messages from Object-typed return values. 2008-02-26 01:04:43 +00:00
Mark Fisher
f9d01dd568 Added a 'replyTimeout' property to DefaultMessageEndpoint with a default value of 1000 milliseconds. When sending to either the 'defaultOutputChannelName' or the reply channel specified by the input MessageHeader's 'returnAddress', a timeout will now cause the reply Message to be wrapped within a MessageDeliveryException and passed to the endpoint's ErrorHandler. The default error handler publishes the exception as an ErrorMessage to the global error channel (INT-108). 2008-02-25 20:55:24 +00:00
Mark Fisher
0004375e44 Added namespace support for configuring endpoint-specific ErrorHandlers (INT-19). 2008-02-25 19:06:24 +00:00
Mark Fisher
7cb5c918c5 Added namespace support for the <default-concurrency/> sub-element of <message-bus/> (INT-106). 2008-02-25 16:14:24 +00:00
Mark Fisher
3fc03d7795 Added setter for 'defaultConcurrencyPolicy' (INT-106). 2008-02-25 15:00:58 +00:00
Mark Fisher
3508361a29 DefaultMessageEndpoint now accepts the MessageHandler as a constructor arg (the setter has been removed). The MessageBus now has a 'defaultConcurrencyPolicy' rather than passing 'null' when creating an endpoint without an explicitly provided policy (INT-106). The ConcurrentHandler.HandlerTask now logs all errors at DEBUG level and continues to log at WARN level if no 'errorHandler' has been provided to the ConcurrentHandler (INT-120). 2008-02-25 14:30:11 +00:00
Mark Fisher
51d9c8e42c Added header-copying constructor to GenericMessage (INT-123). Also simplified the AbstractMessageHandlerAdapter. 2008-02-22 19:34:08 +00:00
Mark Fisher
094a131b1a The 'correlationId' is now being handled by the AbstractMessageHandlerAdapter (see INT-127). SplitterMessageHandlerAdapter now properly sets the 'sequenceNumber' and 'sequenceSize' properties on the reply's MessageHeader (INT-128). 2008-02-22 15:22:52 +00:00
Mark Fisher
9da59485cb Migrating adapters to spring-integration-adapters (INT-83). 2008-02-21 22:54:24 +00:00
Mark Fisher
a07f031300 Added initial version of RequestReplyTemplate (INT-86). 2008-02-20 15:30:41 +00:00
Mark Fisher
d9d15cab76 Simplified the task scheduler configuration and exposed setters/constructors for ScheduledExecutorService (INT-113). 2008-02-18 22:58:45 +00:00