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

[MRESOLVER-540] TransferResource can reveal more about resource #474

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

cstamas
Copy link
Member

@cstamas cstamas commented Apr 18, 2024

Provide extra information about the resource being transferred.


https://issues.apache.org/jira/browse/MRESOLVER-540

Provide means and extra information about the resource being
transfered.

---

https://issues.apache.org/jira/browse/MRESOLVER-540
@cstamas cstamas self-assigned this Apr 18, 2024
@cstamas
Copy link
Member Author

cstamas commented Apr 18, 2024

Main inspiration is to make stunts like these not required: apache/maven-mvnd#930

*
* @since 2.0.0
*/
public enum ResourceType {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if that one is really needed, as one could use instanceof on the resource (and a cast will be needed anyway)...

Copy link
Member Author

Choose a reason for hiding this comment

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

I kinda agree with you, moreover as these events are emitted ONLY by connector. For example, Transport API of Maven4 completely circumvents connector, and goes directly to transport... so yeah, due this (connector) type can really only be Artifact or Metadata

Copy link
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

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

Not sure about the enum...

@cstamas
Copy link
Member Author

cstamas commented Apr 18, 2024

Will remove/simplify it

@cstamas cstamas requested a review from gnodet April 18, 2024 17:09
@cstamas
Copy link
Member Author

cstamas commented Apr 18, 2024

Simplified, removed cruft and is now simple and nice. @gnodet pls review

@cstamas cstamas merged commit 8b0d417 into apache:master Apr 18, 2024
4 checks passed
@cstamas cstamas deleted the MRESOLVER-540 branch April 18, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants