Look at the interface org.exolab.castor.jdo.Persistent. This interface provides the
hooks
you need.
Let your classes implement this interface.
Eduard
Belugin Max wrote:
> Hello castor-dev,
>
> I want to extend objects loaded with castor by myself. For example, i want to use my
>own
> collections to represent one to many and other relationships.
> But nowadays there is no API to do such thing.
>
> Can anybody from Castor team provide and API to postprocess objects loaded from
>castor.
>
> For example, we can use something like this:
>
> JDO::addObjectListener(ObjectListener ol);
>
> interface ObjectListener{
> afterLoad(JDO jdo, Object o);
> beforeSave(JDO jdo, Object o);
> beforeCreate(JDO jdo, Object o);
> }
>
> --
> Best regards,
> Max
>
> http://belugin.newmail.ru
> ICQ:9406811
>
> -----------------------------------------------------------
> 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