KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jodd > bean > loader > BeanLoader


1 // Copyright (c) 2003-2007, Jodd Team (jodd.sf.net). All Rights Reserved.
2

3 package jodd.bean.loader;
4
5 /**
6  * Bean Loaders know how to populate a bean from provided source.
7  * Loaders are manager by {@link jodd.bean.BeanLoaderManager}.
8  * However, they can be used directly like functors.
9  */

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     public void load(Object JavaDoc destination, Object JavaDoc source);
21
22 }
23
Popular Tags