open class BeanDefinitionBuilder
Programmatic means of constructing org.springframework.beans.factory.config.BeanDefinition using the builder pattern. Intended primarily for use when implementing Spring 2.0 org.springframework.beans.factory.xml.NamespaceHandler.
Author
Rod Johnson
Author
Rob Harrop
Author
Juergen Hoeller
Since
2.0
open fun addConstructorArgReference(beanName: String): BeanDefinitionBuilder
Add a reference to a named bean as a constructor arg. |
|
open fun addConstructorArgValue(value: Any): BeanDefinitionBuilder
Add an indexed constructor arg value. The current index is tracked internally and all additions are at the present point. |
|
open fun addDependsOn(beanName: String): BeanDefinitionBuilder
Append the specified bean name to the list of beans that this definition depends on. |
|
open fun addPropertyReference(name: String, beanName: String): BeanDefinitionBuilder
Add a reference to the specified bean name under the property specified. |
|
open fun addPropertyValue(name: String, value: Any): BeanDefinitionBuilder
Add the supplied property value under the given name. |
|
open fun applyCustomizers(vararg customizers: BeanDefinitionCustomizer): BeanDefinitionBuilder
Apply the given customizers to the underlying bean definition. |
|
open static fun childBeanDefinition(parentName: String): BeanDefinitionBuilder
Create a new |
|
open static fun genericBeanDefinition(): BeanDefinitionBuilderopen static fun genericBeanDefinition(beanClassName: String): BeanDefinitionBuilderopen static fun genericBeanDefinition(beanClass: Class<*>): BeanDefinitionBuilderopen static fun <T : Any> genericBeanDefinition(beanClass: Class<T>, instanceSupplier: Supplier<T>): BeanDefinitionBuilder
Create a new |
|
open fun getBeanDefinition(): AbstractBeanDefinition
Validate and return the created BeanDefinition object. |
|
open fun getRawBeanDefinition(): AbstractBeanDefinition
Return the current BeanDefinition object in its raw (unvalidated) form. |
|
open static fun rootBeanDefinition(beanClassName: String): BeanDefinitionBuilderopen static fun rootBeanDefinition(beanClassName: String, factoryMethodName: String): BeanDefinitionBuilderopen static fun rootBeanDefinition(beanClass: Class<*>): BeanDefinitionBuilderopen static fun rootBeanDefinition(beanClass: Class<*>, factoryMethodName: String): BeanDefinitionBuilder
Create a new |
|
open fun setAbstract(flag: Boolean): BeanDefinitionBuilder
Set whether or not this definition is abstract. |
|
open fun setAutowireMode(autowireMode: Int): BeanDefinitionBuilder
Set the autowire mode for this definition. |
|
open fun setDependencyCheck(dependencyCheck: Int): BeanDefinitionBuilder
Set the depency check mode for this definition. |
|
open fun setDestroyMethodName(methodName: String): BeanDefinitionBuilder
Set the destroy method for this definition. |
|
open fun setFactoryMethod(factoryMethod: String): BeanDefinitionBuilder
Set the name of a static factory method to use for this definition, to be called on this bean's class. |
|
open fun setFactoryMethodOnBean(factoryMethod: String, factoryBean: String): BeanDefinitionBuilder
Set the name of a non-static factory method to use for this definition, including the bean name of the factory instance to call the method on. |
|
open fun setInitMethodName(methodName: String): BeanDefinitionBuilder
Set the init method for this definition. |
|
open fun setLazyInit(lazy: Boolean): BeanDefinitionBuilder
Set whether beans for this definition should be lazily initialized or not. |
|
open fun setParentName(parentName: String): BeanDefinitionBuilder
Set the name of the parent definition of this bean definition. |
|
open fun setRole(role: Int): BeanDefinitionBuilder
Set the role of this definition. |
|
open fun setScope(scope: String): BeanDefinitionBuilder
Set the scope of this definition. |