|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.internal.util.BeanUtil
public class BeanUtil
Utility class for instantiating configurable bean classes.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 object
public static Object createBean(ClassLoader classLoader, String className)
className
- the fully qualified name of the class to instantiate
public static void configure(Object bean, Properties props)
bean
- the object to set the properties onprops
- the bean properties to set on the object
|
BeanIO 2.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |