Overview

To address the lack of support for pattern matching for methods names in ControlFlowPointcut as discussed in #27187, we have decided to introduce such support in ControlFlowPointcut analogous to the support already available in NameMatchMethodPointcut.

Specifically, we intend to introduce a protected method along the lines of NameMatchMethodPointcut#isMatch(String, String) which by default delegates to PatternMatchUtils.simpleMatch(String, String).

That will likely cover the most common use cases for pattern matching; however, users will still be able to extend ControlFlowPointcut and override isMatch(...) in order to support different styles of pattern matching such as regular expressions.

Related Issues

  • 27187

Comment From: sbrannen

Current work on this issue can be viewed in the following feature branch: https://github.com/spring-projects/spring-framework/compare/main...sbrannen:spring-framework:issues/gh-31435-ControlFlowPointcut-pattern-matching