Uses of Class
org.springframework.beans.factory.support.BeanDefinitionBuilder
Package
Description
Classes supporting the
org.springframework.beans.factory
package.Contains an abstract XML-based
BeanFactory
implementation,
including a standard "spring-beans" XSD.Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
Defines the XML configuration namespace for Spring MVC.
-
Uses of BeanDefinitionBuilder in org.springframework.beans.factory.support
Modifier and TypeMethodDescriptionBeanDefinitionBuilder.addAutowiredProperty
(String name) Add an autowired marker for the specified property on the specified bean.BeanDefinitionBuilder.addConstructorArgReference
(String beanName) Add a reference to a named bean as a constructor arg.BeanDefinitionBuilder.addConstructorArgValue
(Object value) Add an indexed constructor arg value.BeanDefinitionBuilder.addDependsOn
(String beanName) Append the specified bean name to the list of beans that this definition depends on.BeanDefinitionBuilder.addPropertyReference
(String name, String beanName) Add a reference to the specified bean name under the property specified.BeanDefinitionBuilder.addPropertyValue
(String name, Object value) Add the supplied property value under the given property name.BeanDefinitionBuilder.applyCustomizers
(BeanDefinitionCustomizer... customizers) Apply the given customizers to the underlying bean definition.static BeanDefinitionBuilder
BeanDefinitionBuilder.childBeanDefinition
(String parentName) Create a newBeanDefinitionBuilder
used to construct aChildBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.genericBeanDefinition()
Create a newBeanDefinitionBuilder
used to construct aGenericBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.genericBeanDefinition
(Class<?> beanClass) Create a newBeanDefinitionBuilder
used to construct aGenericBeanDefinition
.static <T> BeanDefinitionBuilder
BeanDefinitionBuilder.genericBeanDefinition
(Class<T> beanClass, Supplier<T> instanceSupplier) Create a newBeanDefinitionBuilder
used to construct aGenericBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.genericBeanDefinition
(String beanClassName) Create a newBeanDefinitionBuilder
used to construct aGenericBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(Class<?> beanClass) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(Class<?> beanClass, String factoryMethodName) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.static <T> BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(Class<T> beanClass, Supplier<T> instanceSupplier) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(String beanClassName) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.static BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(String beanClassName, String factoryMethodName) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.static <T> BeanDefinitionBuilder
BeanDefinitionBuilder.rootBeanDefinition
(ResolvableType beanType, Supplier<T> instanceSupplier) Create a newBeanDefinitionBuilder
used to construct aRootBeanDefinition
.BeanDefinitionBuilder.setAbstract
(boolean flag) Set whether this definition is abstract.BeanDefinitionBuilder.setAutowireMode
(int autowireMode) Set the autowire mode for this definition.BeanDefinitionBuilder.setDependencyCheck
(int dependencyCheck) Set the dependency check mode for this definition.BeanDefinitionBuilder.setDestroyMethodName
(String methodName) Set the destroy method for this definition.BeanDefinitionBuilder.setFactoryMethod
(String factoryMethod) Set the name of a static factory method to use for this definition, to be called on this bean's class.BeanDefinitionBuilder.setFactoryMethodOnBean
(String factoryMethod, String factoryBean) 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.BeanDefinitionBuilder.setInitMethodName
(String methodName) Set the init method for this definition.BeanDefinitionBuilder.setLazyInit
(boolean lazy) Set whether beans for this definition should be lazily initialized or not.BeanDefinitionBuilder.setParentName
(String parentName) Set the name of the parent definition of this bean definition.BeanDefinitionBuilder.setPrimary
(boolean primary) Set whether this bean is a primary autowire candidate.BeanDefinitionBuilder.setRole
(int role) Set the role of this definition.Set the scope of this definition.BeanDefinitionBuilder.setSynthetic
(boolean synthetic) Set whether this bean is 'synthetic', that is, not defined by the application itself. -
Uses of BeanDefinitionBuilder in org.springframework.beans.factory.xml
Modifier and TypeMethodDescriptionprotected void
AbstractSimpleBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) Parse the suppliedElement
and populate the suppliedBeanDefinitionBuilder
as required.protected void
AbstractSingleBeanDefinitionParser.doParse
(Element element, BeanDefinitionBuilder builder) Parse the suppliedElement
and populate the suppliedBeanDefinitionBuilder
as required.protected void
AbstractSingleBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) Parse the suppliedElement
and populate the suppliedBeanDefinitionBuilder
as required.protected void
AbstractSimpleBeanDefinitionParser.postProcess
(BeanDefinitionBuilder beanDefinition, Element element) Hook method that derived classes can implement to inspect/change a bean definition after parsing is complete. -
Uses of BeanDefinitionBuilder in org.springframework.scheduling.config
Modifier and TypeMethodDescriptionprotected void
ExecutorBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) protected void
ScheduledTasksBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) protected void
SchedulerBeanDefinitionParser.doParse
(Element element, BeanDefinitionBuilder builder) -
Uses of BeanDefinitionBuilder in org.springframework.web.servlet.config
Modifier and TypeMethodDescriptionprotected void
FreeMarkerConfigurerBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) protected void
ScriptTemplateConfigurerBeanDefinitionParser.doParse
(Element element, ParserContext parserContext, BeanDefinitionBuilder builder)