Skip to content

Support pattern matching for method names in ControlFlowPointcut #31435

Closed
@sbrannen

Description

@sbrannen

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions