Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 44247 invoked from network); 29 Jun 2007 15:03:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jun 2007 15:03:01 -0000 Received: (qmail 37271 invoked by uid 500); 29 Jun 2007 15:03:01 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 37255 invoked by uid 500); 29 Jun 2007 15:03:01 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 37244 invoked by uid 99); 29 Jun 2007 15:03:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 08:03:01 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of tom.schindl@bestsolution.at designates 81.16.98.99 as permitted sender) Received: from [81.16.98.99] (HELO mail.bestsolution.at) (81.16.98.99) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jun 2007 08:02:57 -0700 Received: from localhost (ogmios.bestsolution.at [81.16.98.100]) by mail.bestsolution.at (Postfix) with ESMTP id 34CAE1230E4 for ; Fri, 29 Jun 2007 17:02:36 +0200 (CEST) X-Virus-Scanned: BestSolution.at amavisd-new at bestsolution.at Received: from mail.bestsolution.at ([81.16.98.97]) by localhost (ogmios.bestsolution.at [81.16.98.100]) (amavisd-new, port 10026) with LMTP id rSNM4BvKU7kA for ; Fri, 29 Jun 2007 17:02:32 +0200 (CEST) Received: from [192.168.0.100] (unknown [213.47.207.29]) by mail.bestsolution.at (Postfix) with ESMTP id 458591230E2 for ; Fri, 29 Jun 2007 17:02:32 +0200 (CEST) Message-ID: <46851F08.1090106@bestsolution.at> Date: Fri, 29 Jun 2007 17:02:32 +0200 From: Tom Schindl User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) MIME-Version: 1.0 To: user-java@ibatis.apache.org Subject: Define Factory to instantiate Objects? Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, is it possible to teach iBatis to use a Factory-method to instatiate a class? In my case the constructor is protected (or even better the specified type is an interface) and the objects are normally instantiated using a Factory (for those interested I'm working with Objects generated from Eclipse EMF). I'd e.g. like to say -----------8<----------- -----------8<----------- Please note also that in this case IClient is an Interface and the Factory will take care to create the appropriate real implementation (ClientImpl). Tom