Adjust BaseIntegrationFlowDefinition.controlBus() deprecation
Related to: https://github.com/spring-projects/spring-integration/issues/9683. Since we are going to restore `controlBus()` for convenience, and only one way of Control Bus pattern, based on the `ControlBusCommandRegistry`, there is no need to have another `controlBusOnRegistry()` method * Also fix link for `error-handling` chapter from the `special-channels.adoc`
This commit is contained in:
@@ -541,9 +541,9 @@ public abstract class BaseIntegrationFlowDefinition<B extends BaseIntegrationFlo
|
||||
* Populate the {@code Control Bus} EI Pattern specific {@link MessageHandler} implementation
|
||||
* at the current {@link IntegrationFlow} chain position.
|
||||
* @return the current {@link BaseIntegrationFlowDefinition}.
|
||||
* @deprecated in favor of {@link #controlBusOnRegistry()}
|
||||
* @deprecated in favor of {@link #controlBusOnRegistry()} - will be restored in next version.
|
||||
*/
|
||||
@Deprecated(since = "6.4", forRemoval = true)
|
||||
@Deprecated(since = "6.4")
|
||||
public B controlBus() {
|
||||
return controlBus(null);
|
||||
}
|
||||
@@ -553,10 +553,10 @@ public abstract class BaseIntegrationFlowDefinition<B extends BaseIntegrationFlo
|
||||
* at the current {@link IntegrationFlow} chain position.
|
||||
* @param endpointConfigurer the {@link Consumer} to accept integration endpoint options.
|
||||
* @return the current {@link BaseIntegrationFlowDefinition}.
|
||||
* @deprecated in favor of {@link #controlBusOnRegistry(Consumer)}
|
||||
* @deprecated in favor of {@link #controlBusOnRegistry(Consumer)} - will be restored in next version.
|
||||
* @see GenericEndpointSpec
|
||||
*/
|
||||
@Deprecated(since = "6.4", forRemoval = true)
|
||||
@Deprecated(since = "6.4")
|
||||
@SuppressWarnings("removal")
|
||||
public B controlBus(@Nullable Consumer<GenericEndpointSpec<ServiceActivatingHandler>> endpointConfigurer) {
|
||||
return handle(new ServiceActivatingHandler(
|
||||
|
||||
Reference in New Issue
Block a user