org.databene.commons.bean
Class BeanFactory

java.lang.Object
  extended by org.databene.commons.bean.BeanFactory

public class BeanFactory
extends java.lang.Object

Instantiates JavaBeans from class name and a Properties object that contains the text representation of the bean property values.

Created: 04.09.2007 21:13:06

Author:
Volker Bergmann

Constructor Summary
BeanFactory()
           
 
Method Summary
static java.lang.Object newBean(java.lang.String beanClassName, java.util.Map<java.lang.String,java.lang.Object> properties)
          Creates an object of the specified type.
static java.lang.Object newBean(java.lang.String beanClassName, java.util.Map<java.lang.String,java.lang.Object> properties, ClassProvider factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactory

public BeanFactory()
Method Detail

newBean

public static java.lang.Object newBean(java.lang.String beanClassName,
                                       java.util.Map<java.lang.String,java.lang.Object> properties)
Creates an object of the specified type.

Parameters:
beanClassName - the name of the class to instantiate
properties - the bean properties
Returns:
an object of the specified class

newBean

public static java.lang.Object newBean(java.lang.String beanClassName,
                                       java.util.Map<java.lang.String,java.lang.Object> properties,
                                       ClassProvider factory)


Copyright © 2010. All Rights Reserved.