Re: [Simple-support] Two-Phase support for CycleStrategy?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-12-17 07:51:58
|
It would be up to you, there are a number of ways you could do it. Look at the current CycleStrategy to see how it manages references. I think it would be tricky to do but possible. --- On Sun, 16/12/12, Wolfgang Fahl <wf...@bi...> wrote: > From: Wolfgang Fahl <wf...@bi...> > Subject: [Simple-support] Two-Phase support for CycleStrategy? > To: sim...@li... > Received: Sunday, 16 December, 2012, 5:16 AM > Dear Niall and other readers, > > as an old forum thread points out: > http://old.nabble.com/Invalid-reference-td33813232.html#a33813232 > > ther error: > > Invalid reference '39F1829A0306' found > org.simpleframework.xml.strategy.CycleException: Invalid > reference > '39F1829A0306' found > > is due to the fact that ref's can only point to already > defined ids. > > Since I can not guarantee this in the XML files I need to > read in I have > thought about a two phase solution: > In the first phase instead of throwing Cycle Exceptions all > cases where > the derereference can't be done are collected. > In the second phase the dereferencing is done when all > references are > available. > > What would be the best way to achieve this two phase > approach? > > Yours > Wolfgang > > -- > > BITPlan - smart solutions > Wolfgang Fahl > Pater-Delp-Str. 1, D-47877 Willich Schiefbahn > Tel. +49 2154 811-480, Fax +49 2154 811-481 > Web: http://www.bitplan.de > BITPlan GmbH, Willich - HRB 6820 Krefeld, Steuer-Nr.: > 10258040548, Geschäftsführer: Wolfgang Fahl > > > ------------------------------------------------------------------------------ > LogMeIn Rescue: Anywhere, Anytime Remote support for IT. > Free Trial > Remotely access PCs and mobile devices and provide instant > support > Improve your efficiency, and focus on delivering more > value-add services > Discover what IT Professionals Know. Rescue delivers > http://p.sf.net/sfu/logmein_12329d2d > _______________________________________________ > Simple-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simple-support > |