Package | Description |
---|---|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
org.springframework.scheduling.config |
Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
|
org.springframework.web.servlet.config |
Defines the XML configuration namespace for Spring MVC.
|
Modifier and Type | Method and Description |
---|---|
BeanDefinitionBuilder |
BeanDefinitionBuilder.addConstructorArgReference(String beanName)
Add a reference to a named bean as a constructor arg.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.addConstructorArgValue(Object value)
Add an indexed constructor arg value.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.addDependsOn(String beanName)
Append the specified bean name to the list of beans that this definition
depends on.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.addPropertyReference(String name,
String beanName)
Add a reference to the specified bean name under the property specified.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.addPropertyValue(String name,
Object value)
Add the supplied property value under the given property name.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.applyCustomizers(BeanDefinitionCustomizer... customizers)
Apply the given customizers to the underlying bean definition.
|
static BeanDefinitionBuilder |
BeanDefinitionBuilder.childBeanDefinition(String parentName)
Create a new
BeanDefinitionBuilder used to construct a ChildBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.genericBeanDefinition()
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.genericBeanDefinition(Class<?> beanClass)
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . |
static <T> BeanDefinitionBuilder |
BeanDefinitionBuilder.genericBeanDefinition(Class<T> beanClass,
Supplier<T> instanceSupplier)
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.genericBeanDefinition(String beanClassName)
Create a new
BeanDefinitionBuilder used to construct a GenericBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.rootBeanDefinition(Class<?> beanClass)
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.rootBeanDefinition(Class<?> beanClass,
String factoryMethodName)
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.rootBeanDefinition(String beanClassName)
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . |
static BeanDefinitionBuilder |
BeanDefinitionBuilder.rootBeanDefinition(String beanClassName,
String factoryMethodName)
Create a new
BeanDefinitionBuilder used to construct a RootBeanDefinition . |
BeanDefinitionBuilder |
BeanDefinitionBuilder.setAbstract(boolean flag)
Set whether or not this definition is abstract.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setAutowireMode(int autowireMode)
Set the autowire mode for this definition.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setDependencyCheck(int dependencyCheck)
Set the dependency check mode for this definition.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setDestroyMethodName(String methodName)
Set the destroy method for this definition.
|
BeanDefinitionBuilder |
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 |
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 |
BeanDefinitionBuilder.setInitMethodName(String methodName)
Set the init method for this definition.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setLazyInit(boolean lazy)
Set whether beans for this definition should be lazily initialized or not.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setParentName(String parentName)
Set the name of the parent definition of this bean definition.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setPrimary(boolean primary)
Set whether this bean is a primary autowire candidate.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setRole(int role)
Set the role of this definition.
|
BeanDefinitionBuilder |
BeanDefinitionBuilder.setScope(String scope)
Set the scope of this definition.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractSingleBeanDefinitionParser.doParse(Element element,
BeanDefinitionBuilder builder)
Parse the supplied
Element and populate the supplied
BeanDefinitionBuilder as required. |
protected void |
AbstractSingleBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder)
Parse the supplied
Element and populate the supplied
BeanDefinitionBuilder as required. |
protected void |
AbstractSimpleBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder)
Parse the supplied
Element and populate the supplied
BeanDefinitionBuilder 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.
|
Modifier and Type | Method and Description |
---|---|
protected void |
SchedulerBeanDefinitionParser.doParse(Element element,
BeanDefinitionBuilder builder) |
protected void |
ExecutorBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder) |
protected void |
ScheduledTasksBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected void |
TilesConfigurerBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder) |
protected void |
FreeMarkerConfigurerBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder) |
protected void |
ScriptTemplateConfigurerBeanDefinitionParser.doParse(Element element,
ParserContext parserContext,
BeanDefinitionBuilder builder) |