Hi Robert ----- Original Message ----- From: "robert burrell donkin" <[EMAIL PROTECTED]> > i'd like to start adding some enhancements to betwixt. my starting to do > list is: > > 1. add property getter and setter for the XMLIntrospector used by > BeanWriter. (allowing the introspection behaviour to be altered)
Sounds good. I've been meaning to put an extension mechanism into XMLIntrospector that works like the extension mechanism in java.beans.Instropector. e.g. given a FooBean class it would look on the classpath for a FooBeanXMLBeanInfo class using the same Java beans mechanism. That and maybe having an XML document to describe custom bean mappings. I've found developers often want to express their beans in different XML formats - e.g. use elements for everything, or use attributes for primitive types, or only for 'short' fields. Then when collections, arrays and Maps get used often all kinds of different mappings are often desired. So maybe some XML-based document to describe a more customized 'beaninfo' might be good. I'm still fighting off my inbox and demanding day job but will hopefully get more free time to dive in and help you soon. > 2. add a very simple logging method (probably just a log(String) method in > the introspector with a debug property printing to standard out). this can > be replaced by a more comprehensive system later. Agreed. It'd probably be worth using the commons-logging package; it looks pretty good and simple and would work with log4j or JDK1.4. > 3. solve the problem of infinite loops. (BeanWriter loops when you have > cyclic references). you should be able to spot these by using a stack. at > the very least, an exception can be thrown when a cycle is spotted rather > than looping forever. > > what do you think? Sounds great! I've witnessed the excellent work you've done on digester, want to be a committer on betwixt then you can just commit your changes rather than making patches? James > > - robert > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>