You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/05/19 19:00:03 UTC

DO NOT REPLY [Bug 20027] - ConvertUtils enhancements

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20027>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20027

ConvertUtils enhancements





------- Additional Comments From apacheBugzilla@AMammenT.cotse.net  2003-05-19 17:00 -------
At least for (1) above, it's already possible to register other converters.  
ConvertUtils.register is provided exactly for this purpose.  

For (2) it would be great to check superclasses.  I'm not sure how useful it 
is to have a "convert" method present.  That means a class would have to know, 
apriori, all the other classes into which it could be converted.  Diffucult to 
keep uptodate as new needs come into play - almost always leading to a mix 
between converters and convert methods.  If there are known conversions at 
instantiation, the class itself could declare converters (perhaps event 
itself) and register the new converters.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org