You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benedikt Ritter (JIRA)" <ji...@apache.org> on 2013/03/13 21:28:13 UTC
[jira] [Commented] (BEANUTILS-299) ConvertingWrapDynaBean should
allow custom BeanUtilsBean
[ 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