Declare isStatic
and releaseTarget
as default methods on TargetSource
#31820
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
The
TargetSource
interface in the AOP framework is commonly implemented withisStatic=false
for on-demand target retrieval, as well as an emptyreleaseTarget
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 existingTargetSource
implementations and also new variants introduced by #31447.The text was updated successfully, but these errors were encountered: