commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEANUTILS-299) ConvertingWrapDynaBean should allow custom BeanUtilsBean
Date Wed, 13 Mar 2013 20:28:13 GMT

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

Benedikt Ritter commented on BEANUTILS-299:
-------------------------------------------

This can be achieved by using {{BeanUtilsBean.setInstance(BeanUtilsBean)}} before creating
the {{ConvertingWrapDynaBean}}.
                
> ConvertingWrapDynaBean should allow custom BeanUtilsBean
> --------------------------------------------------------
>
>                 Key: BEANUTILS-299
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-299
>             Project: Commons BeanUtils
>          Issue Type: Improvement
>          Components: DynaBean
>            Reporter: Heikki Vesalainen
>             Fix For: LATER THAN 1.8.4
>
>
> ConvertingWrapDynaBean should accept as constructor parameter a custom BeanUtilsBean
and use that instead of the static BeanUtils.
> like so:
> BeanUtilsBean beanUtils;
> public ConvertingWrapDynaBean(Object instance, BeanUtilsBean beanUtils) {
>   super(instance);
>   this.beanUtils = beanUtils;
> }
> public ConvertingWrapDynaBean(Object instance) {
>   this(instance, new BeanUtilsBean);
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message