
artoria.data.bean.support.ApacheBeanCopier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artoria-extend Show documentation
Show all versions of artoria-extend Show documentation
Artoria is a java technology framework based on the facade pattern.
The newest version!
package artoria.data.bean.support;
import artoria.convert.ConversionService;
import artoria.data.bean.BeanCopier;
import artoria.exception.ExceptionUtils;
import org.apache.commons.beanutils.BeanUtils;
/**
* The apache bean copier.
* @author Kahle
*/
public class ApacheBeanCopier implements BeanCopier {
@Override
public void copy(Object from, Object to, ConversionService conversionService) {
try {
BeanUtils.copyProperties(to, from);
}
catch (Exception e) {
throw ExceptionUtils.wrap(e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy