db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (TORQUE-159) Split generated peer classes into implementation and a static wrapper
Date Mon, 24 Sep 2012 07:08:14 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Fox closed TORQUE-159.

> Split generated peer classes into implementation and a static wrapper
> ---------------------------------------------------------------------
>                 Key: TORQUE-159
>                 URL: https://issues.apache.org/jira/browse/TORQUE-159
>             Project: Torque
>          Issue Type: New Feature
>    Affects Versions: 3.3
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>             Fix For: 4.0-beta1
> The peer classes are accessed in a static way so the behavior cannot be changed at runtime.
This is bad e.g. when one wants to insert mock classes for testing.
> Therefore, the peer classes shoul be plit into a static wrapper which holds an implementation
class and delegates all function calls to the implementation class. the implementation can
be exchanged via a setter. The static fields should stay in the static wrapper.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message