tuscany-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kelvin goodson" <kelvingood...@gmail.com>
Subject Re: Instantiate static SDOs with DataFactory
Date Fri, 15 Dec 2006 14:30:28 GMT
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
I think you must have a call to something like
somewhere,  and that would seem to be masking the static defintion on Type

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 <erueede@yahoo.com> wrote:
> Hi all,
> I'm referring to Philipp Schöpfs 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

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message