forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support pattern matching for method names in ControlFlowPointcut
Prior to this commit, ControlFlowPointcut supported a single method name which was matched exactly. Although it was possible to extend ControlFlowPointcut to add support for pattern matching, it was a bit cumbersome. To address that, this commit introduces built-in pattern matching support for method names in ControlFlowPointcut, analogous to the pattern matching support in NameMatchMethodPointcut. Specifically, a user can provide one or more method name patterns, and the patterns will be matched against candidate method names using OR semantics. By default, the matching algorithm delegates to PatternMatchUtils.simpleMatch(), but this can be overridden in subclasses by overriding the new protected isMatch() method. Closes spring-projectsgh-31435
- Loading branch information
Showing
2 changed files
with
174 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters