jodd.bean.loader
Interface BeanLoader
- All Known Implementing Classes:
- BaseBeanLoader, MapBeanLoader, ResultSetBeanLoader
public interface BeanLoader
Bean Loaders know how to populate a bean from provided source.
Loaders are manager by BeanLoaderManager.
However, they can be used directly like functors.
|
Method Summary |
void |
load(Object bean,
Object source)
Loads values from given source into the destination bean. |
load
void load(Object bean,
Object source)
- 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