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.