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

refactor: introduce PortMappingRegistry service #4677

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

ndr-brt
Copy link
Member

@ndr-brt ndr-brt commented Dec 16, 2024

What this PR changes/adds

Following up #4671 :
Adds a PortMappingRegistry service, to centralize the PortMapping registration.
Makes use of @Configuration and @Settings annotation to define api configuration, making WebServiceConfigurer not needed (it has been deprecated)

Why it does that

refactor

Further notes

  • refactored JettyService start method a little, the mappings validations have been moved on PortMappings (so the runtime would crash earlier in case of inconsistencies, improved methods naming and scope

Linked Issue(s)

Part of #4669

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

@ndr-brt ndr-brt added the refactoring Cleaning up code and dependencies label Dec 16, 2024
@ndr-brt ndr-brt requested a review from wolf4ood December 16, 2024 10:07
@ndr-brt ndr-brt force-pushed the refactor-port-mappings branch from 450e40d to 551a4bd Compare December 16, 2024 10:09
@ndr-brt ndr-brt force-pushed the refactor-port-mappings branch from 551a4bd to 53511b7 Compare December 16, 2024 10:21
Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

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

Just a reminder, please update the doc to reflect this.

@ndr-brt
Copy link
Member Author

ndr-brt commented Dec 16, 2024

Just a reminder, please update the doc to reflect this.

will to after merge, I am already preparing the change

Copy link
Contributor

@jimmarino jimmarino left a comment

Choose a reason for hiding this comment

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

One other nit: the name PortMappings implies just a container object. Could you change it to PortMappingRegistry or PortMappingService?

Copy link
Contributor

@wolf4ood wolf4ood left a comment

Choose a reason for hiding this comment

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

🧹

@ndr-brt ndr-brt changed the title refactor: introduce PortMappings service refactor: introduce PortMappingRegistry service Dec 16, 2024
@ndr-brt ndr-brt merged commit 45fa080 into eclipse-edc:main Dec 18, 2024
25 of 27 checks passed
@ndr-brt ndr-brt deleted the refactor-port-mappings branch December 18, 2024 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Cleaning up code and dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants