[
https://issues.apache.org/jira/browse/DBUTILS-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437924#comment-13437924
]
Simone Tripodi edited comment on DBUTILS-99 at 8/21/12 2:12 AM:
----------------------------------------------------------------
Got it, thanks - and apologize, _dependency injection_ made me think indeed
thinking about a DI Framework (Spring, Guice) and that's why I didn't
understand why you wrote _there is no good way to use dependency injection with
QueryRunners_
I wouldn't have had objections on adding the {{QueryRunnerFactory}} in any
case, mine was just a matter of curiosity :)
was (Author: simone.tripodi):
Got it, thanks - and apologize, _dependency injection_ made me think indeed
thinking about a DI Framework (Spring, Guice) and that's why I didn't
understand why you wrote _ there is no good way to use dependency injection
with QueryRunners_
I wouldn't have had objections on adding the {{QueryRunnerFactory}} in any
case, mine was just a matter of curiosity :)
> Create QueryRunner Factory
> --------------------------
>
> Key: DBUTILS-99
> URL: https://issues.apache.org/jira/browse/DBUTILS-99
> Project: Commons DbUtils
> Issue Type: Improvement
> Affects Versions: 1.5
> Reporter: William R. Speirs
> Assignee: William R. Speirs
> Priority: Minor
>
> Currently there is no good way to use dependency injection with QueryRunners.
> Creating a simple factory class to allow for easy injection (and therefore
> easier unit test creation) should solve this problem.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira