Skip to content

Commit

Permalink
Adjust BaseIntegrationFlowDefinition.controlBus() deprecation
Browse files Browse the repository at this point in the history
Related to: #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`
  • Loading branch information
artembilan committed Dec 2, 2024
1 parent 4f0ac89 commit 6c42630
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ public B controlBusOnRegistry(@Nullable Consumer<GenericEndpointSpec<ServiceActi
* 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);
}
Expand All @@ -553,10 +553,10 @@ public B controlBus() {
* 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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If there is need to do anything with such an error, the `xref:handler-advice/rea
Any time you face channel resolution errors for a reply that you do not care about, you can set the affected component's `output-channel` attribute to 'nullChannel' (the name, 'nullChannel', is reserved within the application context).

The 'errorChannel' is used internally for sending error messages and may be overridden with a custom configuration.
This is discussed in greater detail in xref:scatter-gather.adoc#scatter-gather-error-handling[Error Handling].
This is discussed in greater detail in xref:error-handling.adoc[Error Handling].


See also xref:dsl/java-channels.adoc[Message Channels] in the Java DSL chapter for more information about message channel and interceptors.

0 comments on commit 6c42630

Please sign in to comment.