GH-9683: Bring back controlBus() API

Fixes: https://github.com/spring-projects/spring-integration/issues/9683

Since we don't support SpEL-based Control Bus functionality anymore,
there is no need to keep separate `controlBusOnRegistry()`

* In all DSLs Deprecate `controlBusOnRegistry()` and restore `controlBus()` which is now fully based
on the `ControlBusCommandRegistry`
* Deprecate now out of use `<control-bus use-registry="">` attribute
* Fix `ControlBusParser` to not deal with `use-registry` attribute anymore
* Remove deprecated before `ExpressionControlBusFactoryBean` and `ExpressionCommandMessageProcessor`
* Remove `use-registry` from test configs
* Fix `ControlBusChainTests` to rely on a new Control Bus functionality
This commit is contained in:
Artem Bilan
2025-01-02 14:06:31 -05:00
parent 37664fb2aa
commit d9f21fef42
24 changed files with 54 additions and 284 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2016-2024 the original author or authors.
* Copyright 2016-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -358,7 +358,7 @@ public class JmsTests extends ActiveMQMultiContextTests {
@Bean
public IntegrationFlow controlBus() {
return IntegrationFlowDefinition::controlBusOnRegistry;
return IntegrationFlowDefinition::controlBus;
}
@Bean