Melloware commented on BEANUTILS-524:

No what I am thinking is you will need an Interfaces in Commons BeanUtils for 
CopyUtils.  Then in BU the current Copy method will implements a CopyUtilsBean. 
and in BULL you will create one just like above in the BULL code that 
implements the same CopyUtils interface.

Then in the signature of BeanUtilsBean you will pass it a CopyUtils instance 
either the one from BULL or the one from BU (default).  That way you are 
passing in either your custom one or the default current behavior from 

However that will mean you will need an optional dependency in your BULL 
library like...

> Make BeanUtils copyProperties able to copy Immutable, Mutable and Mixed Java 
> Bean
> ---------------------------------------------------------------------------------
>                 Key: BEANUTILS-524
>                 URL: https://issues.apache.org/jira/browse/BEANUTILS-524
>             Project: Commons BeanUtils
>          Issue Type: New Feature
>          Components: Locale BeanUtils / Converters
>            Reporter: Fabio Borriello
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
> h4. Overview
> the copyProperties method in the BeanUtils class, is able to copy only public 
> properties or the ones with a public setter method.
> it would be really useful if this functionality can be extended in order to 
> copy any kind of Java Bean: Mutable, Immutable, Mixed.
> h4. Solution 
> Evaluate  the possibility to use, behind the scenes, an open source library 
> that is able to copy Mutable, Immutable and Mixed Java Bean. The library In 
> object is [BULL|https://github.com/HotelsDotCom/bull]. 
> This would also make able to copy nested objects.

This message was sent by Atlassian Jira

Reply via email to