-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
INT-4539: Fix Java DSL for prototype beans
JIRA: https://jira.spring.io/browse/INT-4539 The `IntegrationFlowBeanPostProcessor` doesn't check for prototype beans and just override them in the application context with the singletons * Since we can't in the DSL understand if provided object is a prototype or not, we try to check for its bean definition by possible bean name. Use `NamedComponent` for possible bean name to check. * Remove `final` from the `IntegrationComponentSpec.get()` since its result is not visible for CGI proxies when it is declared as a `@Bean` and subsequent `getObject()` produces a new internal object * Verify prototype beans with new test in the `IntegrationFlowTests` **Cherry-pick to 5.0.x**
- Loading branch information
1 parent
2df71fb
commit c4d6cf2
Showing
3 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters