[Simple-support] More on dropped annotations
Brought to you by:
niallg
|
From: Quirino Z. <qu...@la...> - 2008-07-10 16:36:11
|
I'm trying to find a solution, but I can't get out of it for now. I toke a look at Simple serialization mechanism: maybe I lost some steps, but the key is: 1) I use persister.write(annotatedObject, anOutputStream,etc) 2) Persister calls Traverser which should be the root of all serialization operations 3) Traverser gets source-object's class and starts scanning process to find annotations and whatever Now, if JBoss drops annotations during class loading, it's impossible for Simple to find them. Anyway we could reload the class with a custom classloader and make Simple use the loaded Class object as annotation scanning map. So my question is: Is it possible to tell Persister to do something like write(Object source, Class reloadedClass, OutputStream stream) ? Thanks in advance -- Quirino Zagarese LaszloItalia Founder (www.laszloitalia.org) Software Development Manager - Galilaeus s.r.l. (www.galilaeus.net) |