commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moandji Ezana (JIRA)" <>
Subject [jira] [Commented] (DBUTILS-99) Create QueryRunner Factory
Date Mon, 20 Aug 2012 22:14:38 GMT


Moandji Ezana commented on DBUTILS-99:

I use constructor injection with Guice as well. Why can't you just do:

public MyClass(QueryRunner queryRunner)

Unit tests could still inject whatever instance they like.

Maybe I'm missing your point. What would the factory's API be?
> Create QueryRunner Factory
> --------------------------
>                 Key: DBUTILS-99
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


View raw message