diff --git a/src/reference/asciidoc/channel.adoc b/src/reference/asciidoc/channel.adoc index 4d1d9dda99..b121e70d3d 100644 --- a/src/reference/asciidoc/channel.adoc +++ b/src/reference/asciidoc/channel.adoc @@ -294,6 +294,9 @@ Starting with _Spring Framework 4.1_ and Spring Integration 4.1, the `ChannelInt They are invoked after `send()/receive()` calls, regardless of any exception that is raised, thus allowing for resource cleanup. Note, the Channel invokes these methods on the ChannelInterceptor List in the reverse order of the initial `preSend()/preReceive()` calls. +Starting with _version 5.1_, global channel interceptors are now applied to channels registered dynamically - such as via the `IntegrationFlowContext` when using the Java DSL, or beans that are initialized using `beanFactory.initializeBean()`. +Previously, interceptors were not applied when beans were created after the application context was refreshed. + [[channel-template]] ==== MessagingTemplate diff --git a/src/reference/asciidoc/overview.adoc b/src/reference/asciidoc/overview.adoc index 7643771866..9e49589040 100644 --- a/src/reference/asciidoc/overview.adoc +++ b/src/reference/asciidoc/overview.adoc @@ -413,6 +413,9 @@ This annotation is an analogue of the `` xml element (s `@GlobalChannelInterceptor` annotations can be placed at the class level (with a `@Component` stereotype annotation), or on `@Bean` methods within `@Configuration` classes. In either case, the bean *must* be a `ChannelInterceptor`. +Starting with _version 5.1_, global channel interceptors are now applied to channels registered dynamically - such as via the `IntegrationFlowContext` when using the Java DSL, or beans that are initialized using `beanFactory.initializeBean()`. +Previously, interceptors were not applied when beans were created after the application context was refreshed. + The `@IntegrationConverter` annotation has been introduced to mark `Converter`, `GenericConverter` or `ConverterFactory` beans as candidate converters for `integrationConversionService`. This annotation is an analogue of the `` xml element (see <>). `@IntegrationConverter` annotations can be placed at the class level (with a `@Component` stereotype annotation), or on `@Bean` methods within `@Configuration` classes. diff --git a/src/reference/asciidoc/whats-new.adoc b/src/reference/asciidoc/whats-new.adoc index a82943b07b..a299c0c413 100644 --- a/src/reference/asciidoc/whats-new.adoc +++ b/src/reference/asciidoc/whats-new.adoc @@ -33,3 +33,8 @@ Previously: - A `MessagingException`, with no `failedMessage` property, was wrapped in a `MessagingException` with the `failedMessage` property set - Other `RuntimeException` s were re-thrown unchanged - Checked exceptions were wrapped in a `MessageDeliveryException` with the `failedMessage` property set + +==== Global Channel Interceptors + +Global channel interceptors are now applied to channels registered dynamically - such as via the `IntegrationFlowContext` when using the Java DSL, or beans that are initialized using `beanFactory.initializeBean()`. +Previously, interceptors were not applied when beans were created after the application context was refreshed.