commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simone Tripodi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DBUTILS-99) Create QueryRunner Factory
Date Mon, 20 Aug 2012 13:56:37 GMT

    [ https://issues.apache.org/jira/browse/DBUTILS-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437871#comment-13437871
] 

Simone Tripodi commented on DBUTILS-99:
---------------------------------------

What do you mean for _there is no good way to use dependency injection with QueryRunners_?

I can obtain {{QueryRunner}} instances using _Google Guice_ (a dependency injection framework)
in a very clean way (via {{Provider}} and {{Binder}}), but maybe I am missing some details.
What do you intend to add?

I am asking just because I am curious, nothing strictly related to DBUTILS! :)
                
> 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

        

Mime
View raw message