01: // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
02:
03: package jodd.bean.loader;
04:
05: /**
06: * Bean Loaders know how to populate a bean from provided source.
07: * Loaders are manager by {@link jodd.bean.BeanLoaderManager}.
08: * However, they can be used directly like functors.
09: */
10: public interface BeanLoader {
11:
12: /**
13: * Loads values from given source into the destination bean.
14: * All properties from source object will be iterated
15: * to be set into the destination.
16: *
17: * @param destination instance that will be populated
18: * @param source object to populate from
19: */
20: void load(Object destination, Object source);
21:
22: }
|