Skip to content

Add public getDeclaredMethods method to ReflectionUtils #22580

Closed
@philwebb

Description

@philwebb

Although we can't directly expose the raw array of declared methods that we cache, there is still some benefit in having a public method that exposes a cloned copy. Specifically allows us to save security checks and it reduces the number of Method instances created. It's also often faster than calling doWithLocalMethods and needing to create a callback.

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