You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Consider target-class proxy mode by default [SPR-14515] #19084
in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: taskA general task
Aside from Spring Boot's default target-class choice for high-level proxy functionality there, I don't see us ever changing this in the core framework facilities. At that level, this is effectively an independent setting for every proxy factory and would break many assumptions in scenarios that are hard to fix.
Also, in native images and similar scenarios, it actually turned out to be beneficial to aim for interface-based proxies wherever possible. Even for configuration classes, the "lite" mode (proxyBeanMethods=false) is rather recommendable for library components now, avoiding unnecessary class generation.
in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: taskA general task
Activity
spring-projects-issues commentedon Aug 25, 2016
Willian Constâncio da Silva commented
Maybe #8346 is a related issue.
jhoeller commentedon Jul 14, 2023
Aside from Spring Boot's default target-class choice for high-level proxy functionality there, I don't see us ever changing this in the core framework facilities. At that level, this is effectively an independent setting for every proxy factory and would break many assumptions in scenarios that are hard to fix.
Also, in native images and similar scenarios, it actually turned out to be beneficial to aim for interface-based proxies wherever possible. Even for configuration classes, the "lite" mode (
proxyBeanMethods=false) is rather recommendable for library components now, avoiding unnecessary class generation.