commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (BEANUTILS-228) [beanutils] ConvertUtilsBean: register converter for specific property
Date Mon, 06 Nov 2006 05:29:40 GMT
     [ ]

Niall Pemberton updated BEANUTILS-228:

    Bugzilla Id:   (was: 31568)
    Component/s: Converters

> [beanutils] ConvertUtilsBean: register converter for specific property
> ----------------------------------------------------------------------
>                 Key: BEANUTILS-228
>                 URL:
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: Converters
>    Affects Versions: 1.5
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Michael Schuerig
>            Priority: Minor
> Currently, converters are selected only based on the class to which they 
> convert objects. In general this works pretty well, but I've encountered 
> cases, where this doesn't work out.  
> For example, I'm using java.util.Date objects to represent points and 
> intervals in time that are not completely specific, such as day of the week 
> and month. Now I can easily write a Converter that uses SimpleDateFormat to 
> convert string representations of these dates ("Mon", "Feb") to Date objects.  
> When I register one of these converters with ConvertUtils(Bean), though, it 
> preempts any conversion to Date. Something I clearly don't want as I have to 
> deal with different kinds of dates. 
> As a solution, I'd like to be able to register a converter for a specific 
> property of a bean class, with a method this 
> ConvertUtilsBean#register(Converter converter, java.lang.Class 
> destinationClass, java.lang.Class beanClass, java.lang.String propertyName) 
> Michael

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message