Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6101423A for ; Sun, 29 May 2011 17:44:29 +0000 (UTC) Received: (qmail 75696 invoked by uid 500); 29 May 2011 17:44:29 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 75659 invoked by uid 500); 29 May 2011 17:44:29 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 75532 invoked by uid 99); 29 May 2011 17:44:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 May 2011 17:44:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 May 2011 17:44:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 86B29E750E for ; Sun, 29 May 2011 17:43:47 +0000 (UTC) Date: Sun, 29 May 2011 17:43:47 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <380347982.52092.1306691027548.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1480181862.52090.1306691027470.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (TORQUE-159) Split generated peer classes into implementation and a static wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-159?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox resolved TORQUE-159. ------------------------------- Resolution: Fixed Fix Version/s: 4.0 > 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 > > > 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