Return-Path: Delivered-To: apmail-ws-tuscany-user-archive@locus.apache.org Received: (qmail 59317 invoked from network); 15 Dec 2006 14:30:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2006 14:30:56 -0000 Received: (qmail 47527 invoked by uid 500); 15 Dec 2006 14:31:03 -0000 Delivered-To: apmail-ws-tuscany-user-archive@ws.apache.org Received: (qmail 47511 invoked by uid 500); 15 Dec 2006 14:31:03 -0000 Mailing-List: contact tuscany-user-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-user@ws.apache.org Delivered-To: mailing list tuscany-user@ws.apache.org Received: (qmail 47502 invoked by uid 99); 15 Dec 2006 14:31:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 06:31:03 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kelvingoodson@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Dec 2006 06:30:53 -0800 Received: by an-out-0708.google.com with SMTP id c2so276617anc for ; Fri, 15 Dec 2006 06:30:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=Mfd9YGe80zdUqTm8IHKvjk+r5rOYQ/ZkfoiYVu+xWQ/OBuzh76ZW4qzglipCakj6F731S9OqCb3jmI8f9HlPdr6Lq+rqu531WLLM0Ep0B4pHwP6NgRE2fTpy9iZpF7JicWH7ieKHQMKGObaZp1AP6mKIP0dXTkOgxEZZfORTiAk= Received: by 10.49.13.14 with SMTP id q14mr60788nfi.1166193029692; Fri, 15 Dec 2006 06:30:29 -0800 (PST) Received: by 10.78.201.14 with HTTP; Fri, 15 Dec 2006 06:30:28 -0800 (PST) Message-ID: <9deac9fd0612150630u487e2a5bxe452d9765f21ad5d@mail.gmail.com> Date: Fri, 15 Dec 2006 14:30:28 +0000 From: "kelvin goodson" Reply-To: kelvin@thegoodsons.org.uk To: tuscany-user@ws.apache.org Subject: Re: Instantiate static SDOs with DataFactory In-Reply-To: <20061215140821.43136.qmail@web56315.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3790_24099268.1166193028808" References: <20061215140821.43136.qmail@web56315.mail.re3.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3790_24099268.1166193028808 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Erich, it sounds to me like you have managed to register the types dynamically (perhaps as well as statically); i.e. in addition to a call to SDOUtil.registerStaticTypes(FactoryThatCreatesPersonClassesEtc.class); I think you must have a call to something like XSDHelper.INSTANCE.define(input_stream_from_SchemaThatDefinesPersonTypeEtc)= ; somewhere, and that would seem to be masking the static defintion on Type lookup In answer to your question, if, when using the dynamic API to create a DataObject, the Type of data object that you are creating was registered statically, then, as you suggest ought to be the case above, you can use either the static or the dynamic APIs on that data object. If however the type was registered dynamically, then you can only use the dynamic api. Regards, Kelvin. On 15/12/06, Erich Rueede wrote: > > Hi all, > > I'm referring to Philipp Sch=F6pfs questions about instantiating a static > SDO through the DataFactory.INSTANCE.create(Person.class) method. > > This works without exception for me BUT the actual object created is not > static but dynamic (DynamicDataObjectImpl) and therefore it cannot be > type- > casted to "Person". I actually expected a "PersonImpl" to be returned... > > So the question is: > Is it possible to use the dynamic API to create an SDO and then > subsequently > switch to a static type of processing? This actually works with the > EMF-based > SDO 1.0 implementation. > > Thanks, > > Erich > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org > For additional commands, e-mail: tuscany-user-help@ws.apache.org > > ------=_Part_3790_24099268.1166193028808--