BeanIO 2.0.4

org.beanio.internal.util
Class BeanUtil

java.lang.Object
  extended by org.beanio.internal.util.BeanUtil

public class BeanUtil
extends Object

Utility class for instantiating configurable bean classes.

Since:
1.0
Author:
Kevin Seim

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

createBean

public static Object createBean(ClassLoader classLoader,
                                String className,
                                Properties props)
Instantiates a bean class.

Parameters:
classLoader - the ClassLoader to use to resolve className
className - the fully qualified name of the bean class to create
props - the bean properties to set on the instantiated object
Returns:
the created bean object

createBean

public static Object createBean(ClassLoader classLoader,
                                String className)
Instantiates a bean class using its class name.

Parameters:
className - the fully qualified name of the class to instantiate
Returns:
the created bean object

configure

public static void configure(Object bean,
                             Properties props)
Sets properties on a bean object using default type handlers.

Parameters:
bean - the object to set the properties on
props - the bean properties to set on the object

BeanIO 2.0.4

Copyright © 2010-2013 Kevin Seim