Skip to content

Update ConfigDataEnvironmentContributors to allow imports to access previous contributions #28849

@philwebb

Description

@philwebb

See spring-cloud/spring-cloud-vault#607 (comment) for more background.

Currently ConfigDataLocationResolverContext.getBinder() is documented as "Provides access to a binder that can be used to obtain previously contributed values", but the actual binder here only provides access to parent contributions. This is because ConfigDataEnvironmentContributors.withProcessedImports processes all imports in a single hit, rather than doing them one at a time and creating a new ConfigDataLoaderContext.

If we change this logic then a ConfigDataLocationResolver should be able to make use of previously contributed data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions