JIRA: https://jira.spring.io/browse/INT-4214 * Rework `MessagingMethodInvokerHelper` to delegate to the `InvocableHandlerMethod` with its `HandlerMethodArgumentResolver` infrastructure instead of SpEL * Introduce several `HandlerMethodArgumentResolver` to address some SI use-cases like `@Payloads`, `@Payload(expression = "")` and `Collection` as argument * Initialize `DefaultMessageHandlerMethodFactory` in the `MessagingMethodInvokerHelper.start()`. With that I observed several `Lifecycle` problem when we don't have proper delegate from the top. * Fix `AbstractCorrelatingMessageHandler` and similar to delegate `Lifecycle` properly * Fix `ReactiveConsumer` to delegate `Lifecycle` to the `MessageHandler` * Fix `MutableMessage` do not `generateId()` and set `timestamp` headers if we already have them in the provided headers * With all that `Lifecycle` many tests must be fixed to call `start()` Add SpEL fallback variant to the MessagingMethodInvokerHelper Add `MessagingMethodInvokerHelper.setUseSpelInvoker(boolean)` Add `MethodInvokingMessageProcessorTests.testPerformanceSpelVersusInvocable()` Add Compiled SpEL comparison * Add `MapArgumentResolver` to cover `Properties` case * add `MessagingMethodInvokerHelper.HandlerMethod.spelOnly` state, when we definitely can perform ony SpEL for provided arguments, e.g. `@Header` with expression * Catch `IllegalStateException` with the `"argument type mismatch"` message to fallback to SpEL invocation * Add `Iterator` support for the `CollectionArgumentResolver` * Add `integrationConversionService` bean registration into the `TestUtils.createTestApplicationContext()` * Tweak `.travis.yml` to try to download latest JDK, the current `1.8.0_31` is pretty old already and has some bugs * Adjust some failing tests to use `TestUtils.createTestApplicationContext()` to rely on newly added `integrationConversionService` bean Fix failed tests: `ctx.refresh()` Polishing current year in Copyright * JavaDocs for `CollectionArgumentResolver` and `MapArgumentResolver` * Propagate `ConversionService` from the `MessagingMethodInvokerHelper` to the `MapArgumentResolver.java` Fix `MessagingMethodInvokerHelper` to propagate `BeanFactory` into `MapArgumentResolver` as well The `MapArgumentResolver` now `extends AbstractExpressionEvaluator`, too Fix JavaDoc typo
26 lines
521 B
YAML
26 lines
521 B
YAML
language: java
|
|
jdk: oraclejdk8
|
|
sudo: false
|
|
services:
|
|
- mongodb
|
|
- rabbitmq
|
|
- redis-server
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- mongodb-3.0-precise
|
|
packages:
|
|
- mongodb-org-server
|
|
- oracle-java8-installer
|
|
before_cache:
|
|
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
|
|
cache:
|
|
directories:
|
|
- $HOME/.gradle/caches/
|
|
- $HOME/.gradle/wrapper/
|
|
install: true
|
|
env:
|
|
- TERM=dumb SI_FATAL_WHEN_NO_BEANFACTORY=true NO_REFERENCE_TASK=true
|
|
script:
|
|
- ./gradlew check --refresh-dependencies --no-daemon
|