-
> From: Krishnan, C.P. [mailto:[EMAIL PROTECTED]]
> 
> Hi Ilya,
> 
> Create a base class for urself which implements cloning.
> 
> open castor.jar look at CastorBuilder.properties file found in
> org\exolab\castor\builder directory there.
> rejar castor.jar.
> change the SuperClass variable to your base class.

Hi Krishnan,

I don't think this will work - since I need "deep cloning" - i.e. an
Object in its clone method needs to call clone() on all of its fields,
which a super class clone() will not be able to do.

- Ilya

> 
> now run SourceGenerator.
> 
> All classes will now extend your base class thus support cloning.
> 
> Hope this helps
> C.P.Krishnan
> 
> 
> -----Original Message-----
> From: Ilya Lipkind [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 27, 2001 2:55 PM
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Generating cloneable classes
> 
> 
> 
> 
> it there a way to produce cloneable objects when using 
> Castor-XML source
> generator.  The problem is that if I am interested in deep-cloning, I
> need to go and manually edit all Castor generated files
> 
> thanks,
> - Ilya
> 
> ------------------------------------
> Ilya Lipkind
> Talaris Corporation [formerly Gazoo Corporation]
> 1145 Market Street, Suite 100
> San Francisco, CA 94103
> 
> (408) 730-3369 phone
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
> 
> ----------------------------------------------------------- 
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>       unsubscribe castor-dev
> 
> 

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to