views:

276

answers:

0

Hey,

I have been trying to write a custom field handler which returns the hash code of a java.awt.Image object when writing to XML and retrieves an image based on this hash code when binding the XML to an object. For some reason, I can't get this to work; castor, from what I can tell, simply instantiates the field handler and then doesn't call any of its methods.

Can you give me a quick example of how to do this because I must be missing something simple!

Cheers,

Pete