[ 
https://issues.apache.org/jira/browse/BEANUTILS-572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895476#comment-17895476
 ] 

Johnnie White commented on BEANUTILS-572:
-----------------------------------------

Is it useful or suitable for Commons-beanutils?

> Automatically fill the basic type value in the bean
> ---------------------------------------------------
>
>                 Key: BEANUTILS-572
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-572
>             Project: Commons BeanUtils
>          Issue Type: New Feature
>          Components: Bean / Property Utils
>    Affects Versions: 2.0.0
>            Reporter: Johnnie White
>            Priority: Major
>
> I am going to add a new function as {*}BeanUtils.{*}{*}fillBeanForTest{*}, it 
> can automatically fill the basic type value for a bean's properties.
>  
> e.g. I want to build a bean _Bean1_ with value, if _Bean1_ has 10+ 
> properties. Some are Integer/int/String, some are other custom {_}Bean2-N{_}, 
> what's more _Bean2_ has a properties as a List/Map etc. The code to fill this 
> _Bean1_ may cost 100+ lines( I came up with this function  because I just 
> manually built a very complex bean for test)
>  
> This function can iterately fill bean's properties by simple default value if 
> it can write & reflect & basic type



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to