-
Notifications
You must be signed in to change notification settings - Fork 0
Pr 16635 last version #17
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
base: main
Are you sure you want to change the base?
Conversation
Closes spring-projectsgh-16766 Signed-off-by: Pat McCusker <[email protected]>
Closes spring-projectsgh-16500 Signed-off-by: Pat McCusker <[email protected]>
Issue spring-projectsgh-16500 Signed-off-by: Josh Cummings <[email protected]>
Reviewer's Guide by SourceryThis pull request introduces Class diagram for PathPatternMessageMatcherclassDiagram
class PathPatternMessageMatcher {
-PathPattern pattern
-PathContainer.Options options
-MessageMatcher messageTypeMatcher
+PathPatternMessageMatcher(PathPattern pattern, PathContainer.Options options)
+boolean matches(Message message)
+MatchResult matcher(Message message)
+static Builder withDefaults()
+static Builder withPathPatternParser(PathPatternParser parser)
}
class Builder {
-PathPatternParser parser
+Builder(PathPatternParser parser)
+PathPatternMessageMatcher matcher(String pattern)
+PathPatternMessageMatcher matcher(SimpMessageType type, String pattern)
}
PathPatternMessageMatcher -- MessageMatcher : implements
PathPatternMessageMatcher -- MatchResult : returns
PathPatternMessageMatcher ..> Builder : uses
Deprecated class diagram for SimpDestinationMessageMatcherclassDiagram
class SimpDestinationMessageMatcher {
-PathMatcher matcher
-String pattern
-SimpMessageType messageType
+SimpDestinationMessageMatcher(String pattern)
+SimpDestinationMessageMatcher(String pattern, SimpMessageType messageType)
+boolean matches(Message message)
+Map~String, String~ extractPathVariables(Message message)
}
note for SimpDestinationMessageMatcher "Deprecated: Use PathPatternMessageMatcher instead"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here. PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Hey @GuusArts - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider removing the deprecated SimpDestinationMessageMatcher and LazySimpDestinationMessageMatcher classes.
- It would be helpful to provide a sample configuration that uses PathPatternMessageMatcherBuilderFactoryBean.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
User description
PR Type
Enhancement, Tests
Description
Introduced
PathPatternMessageMatcher
for enhanced message matching.Added
MessageMatcher.MatchResult
for detailed match results.Deprecated
SimpDestinationMessageMatcher
in favor ofPathPatternMessageMatcher
.Updated tests to validate new functionality and ensure backward compatibility.
Changes walkthrough 📝
7 files
Integrated `MessageMatcherFactory` for path pattern support
Added factory bean for `PathPatternMessageMatcher.Builder`
Enhanced authorization manager with path pattern support
Added `MatchResult` class for detailed match results
Introduced utility for path pattern-based matchers
Implemented `PathPatternMessageMatcher` for flexible message matching
Deprecated `SimpDestinationMessageMatcher` in favor of new matcher
3 files
Added tests for path pattern-based authorization
Added unit tests for `PathPatternMessageMatcher`
Updated tests for deprecated `SimpDestinationMessageMatcher`