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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user