Commit Graph

317 Commits

Author SHA1 Message Date
Mark Fisher
b6bd0b30fc Created 'consumer' package and moved consumer implementations from 'message' and 'endpoint' packages. 2008-10-20 12:09:30 +00:00
Mark Fisher
31f1116cff Renamed DefaultMessageBusTests to ApplicationContextMessageBusTests (to match the renamed class under test). 2008-10-20 11:41:50 +00:00
Mark Fisher
25d0ac78b6 INT-435 2008-10-20 11:38:00 +00:00
Mark Fisher
e31520bc64 Renamed DefaultMessageBus to ApplicationContextMessageBus. 2008-10-20 10:43:16 +00:00
Mark Fisher
7f7fb10ae5 Added RouterFactoryBean. MethodInvokingRouter now provides a constructor to accept the 'targetObject' only (without a method or methodName). It will resolve a single method annotated with @Router or else fallback to a single public method (INT-433, INT-434). 2008-10-19 23:02:18 +00:00
Iwein Fuld
f099083d66 RESOLVED - issue INT-431: AbstractMessageBarrierConsumer calls processMessages twice
http://jira.springframework.org/browse/INT-431

Reworked testcase
2008-10-19 14:41:49 +00:00
Mark Fisher
55eb3ae05d MessageHeaders no removes any non-serializable values from its map upon serialization. A warn-level notification will be logged. 2008-10-17 15:04:10 +00:00
Mark Fisher
a8694526ec Removed the 'errorHandler' property from AbstractMessageConsumer and the 'error-handler' attribute from the schema. Will be adding configurable errorChannel Message header instead. 2008-10-15 22:21:27 +00:00
Mark Fisher
18b65fdf0a Renamed the 'pool-executor' element to 'thread-pool-task-executor' (INT-426). 2008-10-15 19:45:58 +00:00
Mark Fisher
11e3fbb584 Removed BlockingChannel interface. The send(message, timeout) method is now defined directly in the top-level MessageChannel interface. 2008-10-15 16:49:00 +00:00
Mark Fisher
0afc835679 Reorganized DefaultMessageBus methods. 2008-10-15 16:19:04 +00:00
Mark Fisher
8e24ef2dd0 Renamed 'setReturnAddress(MessageChannel)' in MessageBuilder to 'setReplyChannel(MessageChannel)'. Also, the version that takes a String instead of a MessageChannel is now named 'setReplyChannelName(String)' for clarity. 2008-10-15 16:08:55 +00:00
Mark Fisher
344e1cecd7 Renamed 'returnAddress' in MessageHeaders to 'replyChannel'. 2008-10-15 15:55:37 +00:00
Mark Fisher
ebcccdc5c9 Moved MessagingException into the new 'org.springframework.integration.core' package. 2008-10-15 03:28:50 +00:00
Mark Fisher
262bd8fd9c Moved MessageChannel into the new 'org.springframework.integration.core' package. 2008-10-15 03:19:28 +00:00
Mark Fisher
2d84ee860b Moved MessagePriority into the new 'org.springframework.integration.core' package. 2008-10-15 03:12:47 +00:00
Mark Fisher
7da7c9e5a0 Moved MessageHeaders into the new 'org.springframework.integration.core' package. 2008-10-15 03:10:17 +00:00
Mark Fisher
08043b541d Moved Message into the new 'org.springframework.integration.core' package. 2008-10-15 02:54:29 +00:00
Mark Fisher
7ef7f57c2b Renamed MessageSelectorChain's enum from Strategy to VotingStrategy and changed MORE_THAN_HALF and AT_LEAST_HALF to MAJORITY and MAJORITY_OR_TIE respectively. 2008-10-14 18:20:01 +00:00
Mark Fisher
21eefa90dc Added namespace support for a MessageSelectorChain's Strategy (ALL, ANY, AT_LEAST_HALF, MORE_THAN_HALF), and added support for nesting <selector-chain/> elements (INT-308). 2008-10-14 17:39:14 +00:00
Mark Fisher
109343d14e Moved MessageSelector interface and implementations into a new 'org.springframework.integration.selector' package (instead of a sub-package under 'message'). Also added support for "Strategy" enum in MessageSelector with the following values available [ALL, ANY, AT_LEAST_HALF, MORE_THAN_HALF] (INT-308). 2008-10-14 16:16:55 +00:00
Mark Fisher
9286f1fdaa Refactored tests. 2008-10-14 15:19:04 +00:00
Mark Fisher
5f6e6277cd ServiceActivatorEndpoint is now ServiceActivatingConsumer. 2008-10-14 15:06:18 +00:00
Mark Fisher
10fd9304f0 Removed ServiceActivatorEndpoint from MethodInvokingConsumerTests. 2008-10-14 14:42:16 +00:00
Mark Fisher
79d9d8dc07 DefaultMethodResolver and AnnotationMethodResolver now use the target class of an AOP proxy. Added tests to DefaultMethodResolverTests: 'jdkProxy' and 'cglibProxy' (INT-425). 2008-10-14 14:16:49 +00:00
Mark Fisher
7ccc8f28d5 The <poller/> element no longer defines trigger properties (interval, initial-delay, cron, etc). Instead it expects a sub-element - either <interval-trigger/> or <cron-trigger/> (INT-423). 2008-10-14 12:25:56 +00:00
Marius Bogoevici
3e669903a4 Fixes configuration, so that the poller can be used. 2008-10-14 02:46:57 +00:00
Mark Fisher
c86b7faef4 Renamed ReplyHolder to ReplyMessageHolder. Modified signature of AbstractReplyMessageProducingConsumer's abstract method to be named 'onMessage'. 2008-10-13 19:50:04 +00:00
Mark Fisher
6f7bd01c2a Added ReplyHolder and modified signature of AbstractReplyProducingMessageConsumer to return void and accept this additional parameter instead. 2008-10-13 19:30:23 +00:00
Mark Fisher
f99911cf89 Removed ChannelRegistry. It has been replaced by the ChannelResolver strategy. 2008-10-13 02:40:15 +00:00
Mark Fisher
8419b48dcd Publisher annotation interceptor now delegates to a ChannelResolver instance rather than a ChannelRegistry. 2008-10-13 02:03:31 +00:00
Mark Fisher
a8d25f6171 Removed ChannelRegistryAware. The AbstractReplyProducingMessageConsumer now uses a BeanFactoryChannelResolver and is therefore now BeanFactoryAware. The annotation post-processors set the BeanFactoryChannelResolver when creating such a consumer (since it is not created within the ApplicationContext in that case). 2008-10-13 00:40:19 +00:00
Mark Fisher
d4271811f3 Added MapBasedChannelResolver. Routers that want to provide an extra level of indirection may be configured with a map of channel names to channel instances rather than relying on the default BeanFactoryChannelResolver that matches the name against bean names directly. 2008-10-12 18:35:09 +00:00
Mark Fisher
8301d9b3a4 Moved ChannelResolver and BeanFactoryChannelResolver into the 'org.springframework.integration.channel' package. 2008-10-12 18:17:08 +00:00
Mark Fisher
b34e416093 The router hierarchy abstract method names are now 'determineTargetChannel', 'determineTargetChannelNames', etc (instead of "resolve..."). This clarifies the distinction between the target channel decision and the resolution of a channel *name* to a channel instance. The latter is now the responsibility of a ChannelResolver strategy, and all subclasses of AbstractChannelNameResolvingMessageRouter now delegate to a ChannelResolver after 'determineTargetChannelNames' has returned the channel name(s). In most cases, it will be a BeanFactoryChannelResolver. 2008-10-12 17:58:36 +00:00
Mark Fisher
0754889c5c ChannelMapping is now ChannelResolver, the BeanNameChannelResolver implementation is now BeanFactoryChannelResolver, and the AbstractChannelMappingMessageRouter base class is now AbstractChannelNameResolvingMessageRouter. The naming is primarily intended to be consistent with DestinationResolver in Spring's JMS support with the ChannelResolver's method name being 'resolveChannelName()' and its return value being a MessageChannel instance. Also, added a ChannelResolutionException. 2008-10-12 17:15:29 +00:00
Iwein Fuld
5c5b414cc4 OPEN - issue INT-412: Not possible to run parallell aggregators
http://jira.springframework.org/browse/INT-412
Added testcases (food for INT-413)
2008-10-12 06:40:50 +00:00
Mark Fisher
04fe19c91e increased await timeouts for transaction tests 2008-10-11 17:47:12 +00:00
Mark Fisher
f143ae5857 Removed 'getErrorChannel' method from MessageBus. 2008-10-11 17:27:07 +00:00
Mark Fisher
5a536586e1 Removed the 'registerChannel' method from DefaultMessageBus; all channels must be registered within the ApplicationContext. The MessageBusParser now creates the 'errorChannel' if no bean with that name is explicitly defined rather than creating it within the DefaultMessageBus initialization. 2008-10-11 17:20:52 +00:00
Mark Fisher
b8551e13be Removed the 'registerChannel' method from the ChannelRegistry interface (most likely to be renamed as it is now used solely for lookup). 2008-10-11 15:54:58 +00:00
Mark Fisher
ec91ae8f08 Renamed RootCauseErrorMessageRouter to the more appropriate ErrorMessageExceptionTypeRouter (the routing is actually based on the most-specific Exception type available in the exceptionTypeChannelMap). 2008-10-10 23:58:27 +00:00
Mark Fisher
cb90d39657 Refactored router hierarchy by adding an AbstractMessageRouter base class and removing the ChannelResolver delegation. The routers that return channel names now accept a ChannelMapping strategy. The BeanNameChannelMapping is typically used as a default. The mapping routers also support "prefix" and "suffix" properties. 2008-10-10 23:47:22 +00:00
Mark Fisher
d0f6684c6a Moving tests to match the package of the classes under test. 2008-10-10 19:57:52 +00:00
Mark Fisher
24793ead19 Separated annotation post processors and bean definition parsers into 'annotation' and 'xml' sub-packages of the 'org.springframework.integration.config' package. 2008-10-10 18:55:24 +00:00
Mark Fisher
bdb4a866c8 Removed ConfigurationException. 2008-10-10 01:52:35 +00:00
Mark Fisher
3b28f09c7c Added receive call to propagation test to avoid collision with the expected results of other methods. 2008-10-09 20:56:08 +00:00
Mark Fisher
b7e4aee3ae The @Poller annotation now supports transaction settings and the 'adviceChain' property when configured with a @ChannelAdapter annotation on an "inbound" pollable method to create a SourcePollingChannelAdapter instance (INT-408). 2008-10-09 20:38:23 +00:00
Mark Fisher
3070a63e39 Added tests for transaction configuration within the @Poller annotation when applied to a MessageConsumer (e.g. @ServiceActivator). 2008-10-09 20:00:59 +00:00
Mark Fisher
fc6dc7488a Added tests for advice chain with @Poller on a channel-polling consumer (@ServiceActivator). 2008-10-09 19:12:23 +00:00