org.springframework.beans.factory.support
Class BeanDefinitionReaderUtils

java.lang.Object
  extended byorg.springframework.beans.factory.support.BeanDefinitionReaderUtils

public class BeanDefinitionReaderUtils
extends java.lang.Object

Common utility methods that are useful fo bean definition readers.

Since:
09.07.2004
Author:
Juergen Hoeller
See Also:
PropertiesBeanDefinitionReader, DefaultXmlBeanDefinitionParser

Constructor Summary
BeanDefinitionReaderUtils()
           
 
Method Summary
static AbstractBeanDefinition createBeanDefinition(java.lang.String className, java.lang.String parent, ConstructorArgumentValues cargs, MutablePropertyValues pvs, java.lang.ClassLoader classLoader)
          Create a new RootBeanDefinition or ChildBeanDefinition for the given class name, parent, constructor arguments, and property values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanDefinitionReaderUtils

public BeanDefinitionReaderUtils()
Method Detail

createBeanDefinition

public static AbstractBeanDefinition createBeanDefinition(java.lang.String className,
                                                          java.lang.String parent,
                                                          ConstructorArgumentValues cargs,
                                                          MutablePropertyValues pvs,
                                                          java.lang.ClassLoader classLoader)
                                                   throws java.lang.ClassNotFoundException
Create a new RootBeanDefinition or ChildBeanDefinition for the given class name, parent, constructor arguments, and property values.

Parameters:
className - the name of the bean class, if any
parent - the name of the parent bean, if any
cargs - the constructor arguments, if any
pvs - the property values, if any
classLoader - the ClassLoader to use for loading bean classes (can be null to just register bean classes by name)
Returns:
the bean definition
Throws:
java.lang.ClassNotFoundException - if the bean class could not be loaded


Copyright (C) 2003-2004 The Spring Framework Project.