That was exactly what I needed, thanks a lot for your quick answer.

Guillaume

On Apr 5, 2005 6:13 PM, Ralf Joachim <[EMAIL PROTECTED]> wrote:
> Hi Guillaume,
> 
> castor supports what you need. There are 2 requirements to get this working:
> 
> 1. Your object factory need to implement:
>     org.exolab.castor.persist.spi.InstanceFactory
> 
> 2. After creation of JDO or JDO2 and before calling jdo.getDatabase()
>     you need to set your object factory on the jdo instance:
>     jdo.setInstanceFactory(InstanceFactory);
> 
> That's it.
> 
> Regards
> Ralf
> 
> Mozviper Cipher schrieb:
> > Hello everyone,
> >
> > We use Castor JDO to manage object persistence in our framework, but
> > Castor is not the only way to persist beans in it.
> >
> > We actually have special needs for which we are seriously thinking
> > about using cglib to dynamically create our bean instances.
> >
> > The only place in our framework where we do not manage ourselves the
> > creation of new bean instances is in the Castor JDO code.
> >
> > Would it be possible that Castor JDO use a user-supplied object
> > factory to obtain new bean instances ?
> >
> > I hope my question is clear enough (my English is still far from perfect).
> >
> > Thanks in advance,
> >
> > Guillaume
> 
> --
> 
> Syscon Ingenieurb�ro f�r
> Me�- und Datentechnik GmbH
> Ralf Joachim
> Raiffeisenstra�e 11
> D-72127 Kusterdingen
> Germany
> 
> Tel.   +49 7071 3690 52
> Mobil: +49 173 9630135
> Fax    +49 7071 3690 98
> 
> Email: [EMAIL PROTECTED]
> Web:   www.syscon-world.de
>

Reply via email to