-
Notifications
You must be signed in to change notification settings - Fork 126
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
Conversation
Provide means and extra information about the resource being transfered. --- https://issues.apache.org/jira/browse/MRESOLVER-540
Main inspiration is to make stunts like these not required: apache/maven-mvnd#930 |
* | ||
* @since 2.0.0 | ||
*/ | ||
public enum ResourceType { |
There was a problem hiding this comment.
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)...
There was a problem hiding this comment.
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
There was a problem hiding this 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...
Will remove/simplify it |
Simplified, removed cruft and is now simple and nice. @gnodet pls review |
Provide extra information about the resource being transferred.
https://issues.apache.org/jira/browse/MRESOLVER-540