You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* GH-2880: Handle `Pausable` in Control Bus
Fixes#2880
* Refactor `ControlBusMethodFilter` to handle `Pausable` managed operations
* Optimize and internal `ControlBusMethodFilter.filter()` logic to rely
on the `MergedAnnotations`
* Modify `EnableIntegrationTests` to test new functionality and document
the feature
* * `ControlBusMethodFilter` to deal with plain `Lifecycle` impls as well
Copy file name to clipboardExpand all lines: spring-integration-core/src/main/java/org/springframework/integration/expression/ControlBusMethodFilter.java
Copy file name to clipboardExpand all lines: spring-integration-core/src/test/java/org/springframework/integration/configuration/EnableIntegrationTests.java
Copy file name to clipboardExpand all lines: src/reference/asciidoc/control-bus.adoc
+1-1
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ For example, you can specify an output channel if the result of the operation ha
20
20
The control bus runs messages on the input channel as Spring Expression Language (SpEL) expressions.
21
21
It takes a message, compiles the body to an expression, adds some context, and then runs it.
22
22
The default context supports any method that has been annotated with `@ManagedAttribute` or `@ManagedOperation`.
23
-
It also supports the methods on Spring's `Lifecycle` interface, and it supports methods that are used to configure several of Spring's `TaskExecutor` and `TaskScheduler` implementations.
23
+
It also supports the methods on Spring's `Lifecycle` interface (and its `Pausable` extension since version 5.2), and it supports methods that are used to configure several of Spring's `TaskExecutor` and `TaskScheduler` implementations.
24
24
The simplest way to ensure that your own methods are available to the control bus is to use the `@ManagedAttribute` or `@ManagedOperation` annotations.
25
25
Since those annotations are also used for exposing methods to a JMX MBean registry, they offer a convenient by-product: Often, the same types of operations you want to expose to the control bus are reasonable for exposing through JMX).
26
26
Resolution of any particular instance within the application context is achieved in the typical SpEL syntax.
0 commit comments