Closed mp911de closed 2 days ago
Not sure I understand how you envision this.
The BeanFactory
is also used to obtain a ResultSetExtractor
. Would you have the BeanFactory
replaced by a ResultSetExtractor
?
We ask BeanFactory
to resolve references for ResultSetExtractor
and RowMapper
. I would like to extend RowMapperFactory
to be able to do that so that we move the lookup into an implementation instead of passing BeanFactory
around.
We already accept
RowMapperFactory
inStringBasedJdbcQuery
that could serve as abstraction to not requireBeanFactory
.JdbcQueryLookupStrategy
provides aRowMapperFactory
implementation so thatJdbcQueryLookupStrategy
could serve as entry point for aRowMapperFactory
implementation usingBeanFactory
. We can extendRowMapperFactory
to resolve bean references and reduce so coupling inStringBasedJdbcQuery
.