[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Object Creation in ozone
In my application objects often initialize their state by creating other
objects in their constructor.
However when creating an OzoneObject ObjectOne whose constructor (see
example below) initiates the creation an OzoneObject ObjectTwo, calling
createObject(ObjectOneImpl....) returns an ObjectTwoImpl_Proxy instead of an
ObjectOneImpl_Proxy.
Is there a way to get the correct createObject() return value while doing
nested object creation such as this?
cheers,
don
example ObjectOne constructor:
public ObjectOneImpl(){
try {
obj2 = (ObjectTwo) Repository.getDatabase().createObject
(ObjectTwoImpl.class.getName(),0, null);
} catch (Exception e) {
System.out.println(e);
}
}
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com