public class BeanUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
static void | 
configure(Object bean,
         Properties props)
Sets properties on a bean object using default type handlers. 
 | 
static Object | 
createBean(ClassLoader classLoader,
          String className)
Instantiates a bean class using its class name. 
 | 
static Object | 
createBean(ClassLoader classLoader,
          String className,
          Properties props)
Instantiates a bean class. 
 | 
public static Object createBean(ClassLoader classLoader, String className, Properties props)
classLoader - the ClassLoader to use to resolve classNameclassName - the fully qualified name of the bean class to createprops - the bean properties to set on the instantiated objectpublic static Object createBean(ClassLoader classLoader, String className)
className - the fully qualified name of the class to instantiatepublic static void configure(Object bean, Properties props)
bean - the object to set the properties onprops - the bean properties to set on the object