Hi Stephen,
It is good you want contribute for this project. I know
http://joda.sourceforge.net/
It is very good idea .
I think it is possible to add more methods for  ConvertUtils like method
 useful for DynamicProxy :

Object transform( Object value, Class type ){
   if( type.isPrimityve() ){
   if(value == null){
      if( type == Boolean.TYPE ){
          return Boolean.FALSE;
    }
        ..............
   }
      if( value instanceof Number ){
       if(  type == int.class ){
          return new Integer( ((Number)value).intValue());
   }
   }
  .......................
 }
 .........................
}

And I think Proxy generator from sandbox-simplestore can be useful for this
project.
This generator can be used in frameworks like JODA, SimpleStore or AltRMI .


> Hi,
> I have been examining the beanutils Convertor/ConvertUtils classes with a
> view to using them instead of the type convertor code I have written:
> http://www.scolebourne.eurobell.co.uk/JodaTypeConvertor.zip
>
> Currently I have found the following differences:
>
> 1) The Joda type convertor is called when an object needs to be converted
to
> a String. ConvertUtils does not do this. This is essential for classes
where
> the toString() is for debugging and not a formal string (such as
> GregorianCalendar).
>
> 2) Joda type convertors support a dynamic convertor creation mechanism.
> Basically, you specify that a particular convertor class is to be used for
> subclasses of a particular class. When required, a new instance of the
> convertor is created, to which the subclass is passed. This is essential
for
> a case like the standard Enumeration pattern in Java, where I don't want
to
> have to write a type convertor for each enumeration subclass, instead I
just
> want to write a convertor for the superclass.
>
>
> Any feedback on these differences/possible enhancements? I am willing to
> contribute to improving ConvertUtils if required.
>
> Stephen
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to