Comment From: sbrannen
Hi @quaff,
What is your use case for making CommonsPool2TargetSource
parameterized?
Comment From: quaff
Hi @quaff,
What is your use case for making
CommonsPool2TargetSource
parameterized?
It's worthy to make changes if full backward compatibility, for example, I can infer target type from java config
@Bean
public CommonsPool2TargetSource<Foo> foo() {
}
Comment From: sbrannen
for example, I can infer target type from java config
Why would you need to do that?
As stated in the Javadoc for TargetSource
:
Application developers don't usually need to work with
TargetSources
directly: this is an AOP framework interface.
In other words, the framework itself would not benefit from parameterizing CommonsPool2TargetSource
-- Object
is sufficient for the framework. So why are you working directly with a TargetSource
?