All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jodd.bean.loader.BeanLoader Maven / Gradle / Ivy

// Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved.

package jodd.bean.loader;

/**
 * Bean Loaders know how to populate a bean from provided source.
 * Loaders are manager by {@link jodd.bean.BeanLoaderManager}.
 * However, they can be used directly like functors.
 */
public 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.
	 *
	 * @param bean		destination instance that will be populated
	 * @param source	object to populate from
	 */
	void load(Object bean, Object source);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy