Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement Configuration Injection #4617

Merged

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 merged commit 90362c9 into eclipse-edc:main Nov 13, 2024
21 checks passed
@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