Closed
Description
Expected Behavior
Since IntegrationFlow
is an interface
nothing stops us to have static
methods in it.
The better end-user experience would be just to have imported an IntegrationFlow
interface and go with fluent API from there an our @Bean
definitions.
Current Behavior
We have to know about an IntegrationFlows
factory and don't forget to import it into our code.
Context
It is a little burden do not forget to import an IntegrationFlows
factory to get access to from(...)
API.
Better to let to end-users to deal only with an IntegrationFlow
interface as return type on a @Bean
definition, as well as in the bean definition code.
Similar API exposure exits in the WebClient
from WebFlux.