You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by robert burrell donkin <ro...@blueyonder.co.uk> on 2003/08/02 10:57:40 UTC
[beanutils] factoring out converter lookup strategy
at the moment ConvertUtilsBean uses a private FastHashMap to store the
Converters it uses to perform it's conversions. this has several
consequences. firstly, this makes it hard for users to choice to use
alternative Converter selection algorithms. for example see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20027
this also has the consequence that it is the default set of Converters is
hard coded - when deregister is called, ConvertUtils reverts to the
default set of Converters hard coded. being able to configure this initial
list (for example when a web application is deployed) would be a useful.
so, i'd like to introduce a strategy (probably an abstract class so that
any methods which need to be added in the future can be). this would
encapsulate the storage and retrieval of Converters. ConvertUtilsBean
would focus on using Converters to perform conversions.
comments anyone?
anyone see any issues before i go ahead and start coding?
- robert
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org