org.springframework.beans.factory.support
Class BeanDefinitionReaderUtils
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanDefinitionReaderUtils
public BeanDefinitionReaderUtils()
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 anyparent
- the name of the parent bean, if anycargs
- the constructor arguments, if anypvs
- the property values, if anyclassLoader
- 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.