Skip to content
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

Declare isStatic and releaseTarget as default methods on TargetSource #31820

Closed
jhoeller opened this issue Dec 12, 2023 · 0 comments
Closed

Declare isStatic and releaseTarget as default methods on TargetSource #31820

jhoeller opened this issue Dec 12, 2023 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@jhoeller
Copy link
Contributor

jhoeller commented Dec 12, 2023

The TargetSource interface in the AOP framework is commonly implemented with isStatic=false for on-demand target retrieval, as well as an empty releaseTarget method for most scenarios. Those methods can be provided as default methods with those common implementations. This is useful for reducing the code of many existing TargetSource implementations and also new variants introduced by #31447.

@jhoeller jhoeller added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Dec 12, 2023
@jhoeller jhoeller added this to the 6.1.2 milestone Dec 12, 2023
@jhoeller jhoeller self-assigned this Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant