I would like to use betwixt to read and write objects from a 3rd party java library. Unfortunately the naming conventions used in some of these objects don't conform to the getter/setter properties that betwixt likes. Here are a few of the problems I need to address:
1. There is a class called Money which is backed by a BigDecimal that is accessible using the method asBigDecimal(). The object can be recreated using new Money(oldMoney.asBigDecimal()). Is there a way to tell betwixt/digestor to do the conversion by using that conversion to BigDecimal? 2. The setter methods on each of the objects return themselves instead of void. This appears to cause betwixt to believe the properties are readable but not writable. It looks like I can subclass XMLIntrospector so that I can modify the BeanInfo object before it is cached so that it knows about the writer methods, is this the best way to go about it? Ryan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
