java.lang.Object | |
↳ | org.springframework.beans.factory.support.BeanDefinitionBuilder |
Programmatic means of constructing
BeanDefinitions
using the builder pattern. Intended primarily for use when implementing Spring 2.0
NamespaceHandlers
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
since Spring 2.5, in favor of
addConstructorArgValue(Object)
| |||||||||||
Add a reference to a named bean as a constructor arg.
| |||||||||||
Add an indexed constructor arg value.
| |||||||||||
Append the specified bean name to the list of beans that this definition
depends on.
| |||||||||||
Add a reference to the specified bean name under the property specified.
| |||||||||||
Add the supplied property value under the given name.
| |||||||||||
Create a new
BeanDefinitionBuilder used to construct a ChildBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . | |||||||||||
Validate and return the created BeanDefinition object.
| |||||||||||
Return the current BeanDefinition object in its raw (unvalidated) form.
| |||||||||||
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . | |||||||||||
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . | |||||||||||
Set whether or not this definition is abstract.
| |||||||||||
Set the autowire mode for this definition.
| |||||||||||
Set the depency check mode for this definition.
| |||||||||||
Set the destroy method for this definition.
| |||||||||||
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
| |||||||||||
Set the name of the factory method to use for this definition.
| |||||||||||
Set the init method for this definition.
| |||||||||||
Set whether beans for this definition should be lazily initialized or not.
| |||||||||||
Set the name of the parent definition of this bean definition.
| |||||||||||
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
| |||||||||||
Set the role of this definition.
| |||||||||||
Set the scope of this definition.
| |||||||||||
This method is deprecated.
since Spring 2.5, in favor of
setScope(String)
| |||||||||||
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
This method is deprecated.
since Spring 2.5, in favor of addConstructorArgValue(Object)
Add an indexed constructor arg value. The current index is tracked internally and all additions are at the present point.
Add a reference to a named bean as a constructor arg.
Add an indexed constructor arg value. The current index is tracked internally and all additions are at the present point.
Append the specified bean name to the list of beans that this definition depends on.
Add a reference to the specified bean name under the property specified.
name | the name of the property to add the reference to |
---|---|
beanName | the name of the bean being referenced |
Add the supplied property value under the given name.
Create a new BeanDefinitionBuilder
used to construct a ChildBeanDefinition
.
parentName | the name of the parent bean |
---|
Create a new BeanDefinitionBuilder
used to construct a GenericBeanDefinition
.
beanClassName | the class name for the bean that the definition is being created for |
---|
Create a new BeanDefinitionBuilder
used to construct a GenericBeanDefinition
.
Create a new BeanDefinitionBuilder
used to construct a GenericBeanDefinition
.
beanClass | the Class of the bean that the definition is being created for
|
---|
Validate and return the created BeanDefinition object.
Return the current BeanDefinition object in its raw (unvalidated) form.
Create a new BeanDefinitionBuilder
used to construct a RootBeanDefinition
.
beanClassName | the class name for the bean that the definition is being created for |
---|
Create a new BeanDefinitionBuilder
used to construct a RootBeanDefinition
.
beanClass | the Class of the bean that the definition is being created for |
---|---|
factoryMethodName | the name of the method to use to construct the bean instance |
Create a new BeanDefinitionBuilder
used to construct a RootBeanDefinition
.
beanClassName | the class name for the bean that the definition is being created for |
---|---|
factoryMethodName | the name of the method to use to construct the bean instance |
Create a new BeanDefinitionBuilder
used to construct a RootBeanDefinition
.
beanClass | the Class of the bean that the definition is being created for
|
---|
Set whether or not this definition is abstract.
Set the autowire mode for this definition.
Set the depency check mode for this definition.
Set the destroy method for this definition.
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
Set the name of the factory bean to use for this definition.
Set the name of the factory method to use for this definition.
Set the init method for this definition.
Set whether beans for this definition should be lazily initialized or not.
Set the name of the parent definition of this bean definition.
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
Set the description associated with this definition.
Set the scope of this definition.
This method is deprecated.
since Spring 2.5, in favor of setScope(String)
Set whether or not this definition describes a singleton bean,
as alternative to setScope(String)
.
This method is deprecated.
since Spring 2.5, in favor of preparing this on the
raw BeanDefinition object
Set the source of this definition.