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] [Created] (TORQUE-159) Split generated peer classes into implementation and a static wrapper
Date Sun, 29 May 2011 17:43:47 GMT
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


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.
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


Mime
View raw message