[Simple-support] Two-Phase support for CycleStrategy?
Brought to you by:
niallg
|
From: Wolfgang F. <wf...@bi...> - 2012-12-16 13:17:08
|
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 |