Skip to content

Ensure that configuration property binding is thread-safe and provide an API for changing the property sources from which it binds #10460

@dsyer

Description

@dsyer

The CPBPP can be called by Spring after the application has started (e.g. for @ConfigurationProperties beans that are scoped proxies). In that case the cached values of the property sources and rebinder that it created on startup can be stale. It would be great if it "just worked", but if that isn't easy, a public API to reset those things would make it possible to fix the @RefreshScope in Spring Cloud. Currently (since 1.0) we have a hack that sets fields in CPBPP using reflection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions