Skip to content

Conversation

@paullatzelsperger
Copy link
Member

@paullatzelsperger paullatzelsperger commented Nov 11, 2024

What this PR changes/adds

This PR implements the configuration injection feature whereby configuration values can be injected in several ways.

To do that, some responsibility was moved from the DependencyGraph and the InjectionPointScanner into the concrete InjectionPoint implementations.

Why it does that

ease of use

Further notes

  • Adapting the EDC code base to this new feature will come in a subsequent PR, but just to show how the mechanism works, I used it in the StsRemoteClientConfigurationExtension and in the CoreServicesExtension.

  • verified with MVD

Future Work

  • providing default values for ValueInjectionPoints and ConfigurationInjectionPoints isn't very elegant at the moment. The existing defaultProvider mechanism should be used, but that'll require some more refactoring. So I'll do this in a subsequent PR to keep this one somewhat focused.

  • in subsequent iterations the DependencyGraph will get improved in terms of its public API and error handling

Linked Issue(s)

Contributes to #4610

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@paullatzelsperger paullatzelsperger force-pushed the feat/config_injection branch 5 times, most recently from 7dd4805 to dcf22d2 Compare November 12, 2024 12:50
@paullatzelsperger paullatzelsperger marked this pull request as ready for review November 12, 2024 12:56
@paullatzelsperger paullatzelsperger merged commit 90362c9 into eclipse-edc:main Nov 13, 2024
@paullatzelsperger paullatzelsperger deleted the feat/config_injection branch November 13, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core feature enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants