jodd.bean.loader
Class MapBeanLoader
java.lang.Object
jodd.bean.loader.BaseBeanLoader
jodd.bean.loader.MapBeanLoader
- All Implemented Interfaces:
- BeanLoader
public class MapBeanLoader
- extends BaseBeanLoader
Populate java bean using implementation of Map.
For each key of Map, it's toString method
is called to get property name.
|
Method Summary |
void |
load(Object bean,
Object source)
Loads values from given source into the destination bean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapBeanLoader
public MapBeanLoader()
load
public void load(Object bean,
Object source)
- Description copied from interface:
BeanLoader
- Loads values from given source into the destination bean.
All properties from source object will be iterated
to be set into the destination.
- Parameters:
bean - destination instance that will be populatedsource - object to populate from