jodd.bean.loader.MapBeanLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jodd-bean Show documentation
Show all versions of jodd-bean Show documentation
Jodd BeanUtil is fast and powerful bean manipulation library.
// Copyright (c) 2003-2013, Jodd Team (jodd.org). All Rights Reserved.
package jodd.bean.loader;
import java.util.Map;
/**
* Populate java bean using implementation of Map
.
*
* For each key of Map
, it's toString
method
* is called to get property name.
*/
public class MapBeanLoader extends BaseBeanLoader {
@SuppressWarnings({"unchecked"})
public void load(Object bean, Object source) {
if (source instanceof Map) {
Map