Skip to content

Leverage ObjectProvider instead of autowired containers#1976

Closed
sdeleuze wants to merge 1 commit into
spring-projects:masterfrom
sdeleuze:SPR-17327
Closed

Leverage ObjectProvider instead of autowired containers#1976
sdeleuze wants to merge 1 commit into
spring-projects:masterfrom
sdeleuze:SPR-17327

Conversation

@sdeleuze

@sdeleuze sdeleuze commented Oct 3, 2018

Copy link
Copy Markdown
Contributor

In order to be able to leverage WebFlux configuration in a functional way, WebHttpHandlerBuilder and RouterFunctionMapping should leverage new ObjectProvider capabilities to get a sorted list of beans by type instead of using autowired containers.

@bclozel @jhoeller After a second look, it is not required to refactor DelegatingWebFluxConfiguration since in functional mode the autowired setter can be called externally using ObjectProvider capabilities + I don't think we could reach consistent design via a constructor approach.

@poutsma Are you ok with these changes?

Issue: SPR-17327

In order to be able to leverage WebFlux configuration in a functional
way, WebHttpHandlerBuilder and RouterFunctionMapping should leverage
new ObjectProvider capabilities to get a sorted list of beans by type
instead of using autowired containers.

Issue: SPR-17327
@sdeleuze sdeleuze requested a review from poutsma October 3, 2018 09:24

@poutsma poutsma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@sdeleuze

sdeleuze commented Oct 3, 2018

Copy link
Copy Markdown
Contributor Author

Merged via 3ff5731.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants