Uses of Interface
org.springframework.beans.factory.config.BeanDefinition
Package
Description
Support package for declarative AOP configuration,
with XML schema being the primary configuration format.
Support package for annotation-driven bean configuration.
SPI interfaces and configuration-related convenience classes for bean factories.
Support infrastructure for bean definition parsing.
Classes supporting the
org.springframework.beans.factory
package.Contains an abstract XML-based
BeanFactory
implementation,
including a standard "spring-beans" XSD.Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Support package for declarative scheduling configuration,
with XML schema being the primary configuration format.
Support package for Spring's dynamic language machinery,
with XML schema being the primary configuration format.
Support classes for Spring's scripting package.
Defines the XML configuration namespace for Spring MVC.
-
Uses of BeanDefinition in org.springframework.aop.config
Modifier and TypeMethodDescriptionprotected abstract BeanDefinition
AbstractInterceptorDrivenBeanDefinitionDecorator.createInterceptorDefinition
(Node node) Subclasses should implement this method to return theBeanDefinition
for the interceptor they wish to apply to the bean being decorated.AdvisorComponentDefinition.getBeanDefinitions()
AspectComponentDefinition.getBeanDefinitions()
PointcutComponentDefinition.getBeanDefinitions()
static BeanDefinition
AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) static BeanDefinition
AopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) static BeanDefinition
AopConfigUtils.registerAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry) static BeanDefinition
AopConfigUtils.registerAutoProxyCreatorIfNecessary
(BeanDefinitionRegistry registry, Object source) Modifier and TypeMethodDescriptionprotected String
AbstractInterceptorDrivenBeanDefinitionDecorator.getInterceptorNameSuffix
(BeanDefinition interceptorDefinition) ModifierConstructorDescriptionAdvisorComponentDefinition
(String advisorBeanName, BeanDefinition advisorDefinition) AdvisorComponentDefinition
(String advisorBeanName, BeanDefinition advisorDefinition, BeanDefinition pointcutDefinition) AspectComponentDefinition
(String aspectName, BeanDefinition[] beanDefinitions, BeanReference[] beanReferences, Object source) PointcutComponentDefinition
(String pointcutBeanName, BeanDefinition pointcutDefinition, String expression) -
Uses of BeanDefinition in org.springframework.beans.factory.annotation
Modifier and TypeInterfaceDescriptioninterface
ExtendedBeanDefinition
interface that exposesAnnotationMetadata
about its bean class - without requiring the class to be loaded yet.Modifier and TypeClassDescriptionclass
Extension of theGenericBeanDefinition
class, adding support for annotation metadata exposed through theAnnotatedBeanDefinition
interface. -
Uses of BeanDefinition in org.springframework.beans.factory.config
Modifier and TypeMethodDescriptionBeanDefinitionHolder.getBeanDefinition()
Return the wrapped BeanDefinition.ConfigurableListableBeanFactory.getBeanDefinition
(String beanName) Return the registered BeanDefinition for the specified bean, allowing access to its property values and constructor argument value (which can be modified during bean factory post-processing).ConfigurableBeanFactory.getMergedBeanDefinition
(String beanName) Return a merged BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.BeanDefinition.getOriginatingBeanDefinition()
Return the originating BeanDefinition, ornull
if none.Modifier and TypeMethodDescriptionvoid
BeanDefinitionCustomizer.customize
(BeanDefinition bd) Customize the given bean definition.protected void
DeprecatedBeanWarner.logDeprecatedBean
(String beanName, Class<?> beanType, BeanDefinition beanDefinition) Logs a warning for a bean annotated with@Deprecated
.protected void
BeanDefinitionVisitor.visitBeanClassName
(BeanDefinition beanDefinition) void
BeanDefinitionVisitor.visitBeanDefinition
(BeanDefinition beanDefinition) Traverse the given BeanDefinition object and the MutablePropertyValues and ConstructorArgumentValues contained in them.protected void
BeanDefinitionVisitor.visitFactoryBeanName
(BeanDefinition beanDefinition) protected void
BeanDefinitionVisitor.visitFactoryMethodName
(BeanDefinition beanDefinition) protected void
BeanDefinitionVisitor.visitParentName
(BeanDefinition beanDefinition) protected void
BeanDefinitionVisitor.visitScope
(BeanDefinition beanDefinition) ModifierConstructorDescriptionBeanDefinitionHolder
(BeanDefinition beanDefinition, String beanName) Create a new BeanDefinitionHolder.BeanDefinitionHolder
(BeanDefinition beanDefinition, String beanName, String[] aliases) Create a new BeanDefinitionHolder. -
Uses of BeanDefinition in org.springframework.beans.factory.parsing
Modifier and TypeMethodDescriptionAbstractComponentDefinition.getBeanDefinitions()
Returns an empty array.BeanComponentDefinition.getBeanDefinitions()
ComponentDefinition.getBeanDefinitions()
Return theBeanDefinitions
that were registered to form thisComponentDefinition
.AbstractComponentDefinition.getInnerBeanDefinitions()
Returns an empty array.BeanComponentDefinition.getInnerBeanDefinitions()
ComponentDefinition.getInnerBeanDefinitions()
Return theBeanDefinitions
that represent all relevant inner beans within this component.ModifierConstructorDescriptionBeanComponentDefinition
(BeanDefinition beanDefinition, String beanName) Create a new BeanComponentDefinition for the given bean.BeanComponentDefinition
(BeanDefinition beanDefinition, String beanName, String[] aliases) Create a new BeanComponentDefinition for the given bean. -
Uses of BeanDefinition in org.springframework.beans.factory.support
Modifier and TypeClassDescriptionclass
Base class for concrete, full-fledgedBeanDefinition
classes, factoring out common properties ofGenericBeanDefinition
,RootBeanDefinition
, andChildBeanDefinition
.class
Bean definition for beans which inherit settings from their parent.class
GenericBeanDefinition is a one-stop shop for declarative bean definition purposes.class
A root bean definition represents the merged bean definition at runtime that backs a specific bean in a Spring BeanFactory.Modifier and TypeMethodDescriptionprotected abstract BeanDefinition
AbstractBeanFactory.getBeanDefinition
(String beanName) Return the bean definition for the given bean name.BeanDefinitionOverrideException.getBeanDefinition()
Return the newly registered bean definition.BeanDefinitionRegistry.getBeanDefinition
(String beanName) Return the BeanDefinition for the given bean name.DefaultListableBeanFactory.getBeanDefinition
(String beanName) SimpleBeanDefinitionRegistry.getBeanDefinition
(String beanName) BeanDefinitionOverrideException.getExistingDefinition()
Return the existing bean definition for the same name.AbstractBeanFactory.getMergedBeanDefinition
(String name) Return a 'merged' BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.AbstractBeanDefinition.getOriginatingBeanDefinition()
Return the originating BeanDefinition, ornull
if none.Modifier and TypeMethodDescriptionprotected void
AbstractAutowireCapableBeanFactory.applyPropertyValues
(String beanName, BeanDefinition mbd, BeanWrapper bw, PropertyValues pvs) Apply the given property values, resolving any runtime references to other beans in this bean factory.protected Object
AbstractBeanFactory.evaluateBeanDefinitionString
(String value, BeanDefinition beanDefinition) Evaluate the given String as contained in a bean definition, potentially resolving it as an expression.static String
BeanDefinitionReaderUtils.generateBeanName
(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) Generate a bean name for the given top-level bean definition, unique within the given bean factory.static String
BeanDefinitionReaderUtils.generateBeanName
(BeanDefinition definition, BeanDefinitionRegistry registry, boolean isInnerBean) Generate a bean name for the given bean definition, unique within the given bean factory.BeanNameGenerator.generateBeanName
(BeanDefinition definition, BeanDefinitionRegistry registry) Generate a bean name for the given bean definition.DefaultBeanNameGenerator.generateBeanName
(BeanDefinition definition, BeanDefinitionRegistry registry) protected RootBeanDefinition
AbstractBeanFactory.getMergedBeanDefinition
(String beanName, BeanDefinition bd) Return a RootBeanDefinition for the given top-level bean, by merging with the parent if the given bean's definition is a child bean definition.protected RootBeanDefinition
AbstractBeanFactory.getMergedBeanDefinition
(String beanName, BeanDefinition bd, BeanDefinition containingBd) Return a RootBeanDefinition for the given bean, by merging with the parent if the given bean's definition is a child bean definition.static RegisteredBean
RegisteredBean.ofInnerBean
(RegisteredBean parent, String innerBeanName, BeanDefinition innerBeanDefinition) Create a newRegisteredBean
instance for an inner-bean.static RegisteredBean
RegisteredBean.ofInnerBean
(RegisteredBean parent, BeanDefinition innerBeanDefinition) Create a newRegisteredBean
instance for an inner-bean.void
AbstractBeanDefinition.overrideFrom
(BeanDefinition other) Override settings in this bean definition (presumably a copied parent from a parent-child inheritance relationship) from the given bean definition (presumably the child).void
BeanDefinitionRegistry.registerBeanDefinition
(String beanName, BeanDefinition beanDefinition) Register a new bean definition with this registry.void
DefaultListableBeanFactory.registerBeanDefinition
(String beanName, BeanDefinition beanDefinition) void
SimpleBeanDefinitionRegistry.registerBeanDefinition
(String beanName, BeanDefinition beanDefinition) <T> T
BeanDefinitionValueResolver.resolveInnerBean
(String innerBeanName, BeanDefinition innerBd, BiFunction<String, RootBeanDefinition, T> resolver) Resolve an inner bean definition and invoke the specifiedresolver
on its merged bean definition.void
AbstractBeanDefinition.setOriginatingBeanDefinition
(BeanDefinition originatingBd) Set the originating (e.g.ModifierConstructorDescriptionprotected
AbstractBeanDefinition
(BeanDefinition original) Create a new AbstractBeanDefinition as a deep copy of the given bean definition.BeanDefinitionOverrideException
(String beanName, BeanDefinition beanDefinition, BeanDefinition existingDefinition) Create a new BeanDefinitionOverrideException for the given new and existing definition.BeanDefinitionValueResolver
(AbstractAutowireCapableBeanFactory beanFactory, String beanName, BeanDefinition beanDefinition) Create a BeanDefinitionValueResolver for the given BeanFactory and BeanDefinition using a defaultTypeConverter
.BeanDefinitionValueResolver
(AbstractAutowireCapableBeanFactory beanFactory, String beanName, BeanDefinition beanDefinition, TypeConverter typeConverter) Create a BeanDefinitionValueResolver for the given BeanFactory and BeanDefinition, using the givenTypeConverter
.GenericBeanDefinition
(BeanDefinition original) Create a new GenericBeanDefinition as deep copy of the given bean definition. -
Uses of BeanDefinition in org.springframework.beans.factory.xml
Modifier and TypeMethodDescriptionParserContext.getContainingBeanDefinition()
final BeanDefinition
AbstractBeanDefinitionParser.parse
(Element element, ParserContext parserContext) BeanDefinitionParser.parse
(Element element, ParserContext parserContext) Parse the specifiedElement
and register the resultingBeanDefinition(s)
with theBeanDefinitionRegistry
embedded in the suppliedParserContext
.NamespaceHandler.parse
(Element element, ParserContext parserContext) Parse the specifiedElement
and register any resultingBeanDefinitions
with theBeanDefinitionRegistry
that is embedded in the suppliedParserContext
.NamespaceHandlerSupport.parse
(Element element, ParserContext parserContext) Parses the suppliedElement
by delegating to theBeanDefinitionParser
that is registered for thatElement
.SimpleConstructorNamespaceHandler.parse
(Element element, ParserContext parserContext) SimplePropertyNamespaceHandler.parse
(Element element, ParserContext parserContext) BeanDefinitionParserDelegate.parseCustomElement
(Element ele) Parse a custom element (outside the default namespace).BeanDefinitionParserDelegate.parseCustomElement
(Element ele, BeanDefinition containingBd) Parse a custom element (outside the default namespace).Modifier and TypeMethodDescriptionBeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired
(Element ele, BeanDefinitionHolder originalDef, BeanDefinition containingBd) Decorate the given bean definition through a namespace handler, if applicable.BeanDefinitionParserDelegate.decorateIfRequired
(Node node, BeanDefinitionHolder originalDef, BeanDefinition containingBd) Decorate the given bean definition through a namespace handler, if applicable.XmlReaderContext.generateBeanName
(BeanDefinition beanDefinition) Call the bean name generator for the given bean definition.BeanDefinitionParserDelegate.parseArrayElement
(Element arrayEle, BeanDefinition bd) Parse an array element.BeanDefinitionParserDelegate.parseBeanDefinitionAttributes
(Element ele, String beanName, BeanDefinition containingBean, AbstractBeanDefinition bd) Apply the attributes of the given bean element to the given bean * definition.BeanDefinitionParserDelegate.parseBeanDefinitionElement
(Element ele, String beanName, BeanDefinition containingBean) Parse the bean definition itself, without regard to name or aliases.BeanDefinitionParserDelegate.parseBeanDefinitionElement
(Element ele, BeanDefinition containingBean) Parses the supplied<bean>
element.protected void
BeanDefinitionParserDelegate.parseCollectionElements
(NodeList elementNodes, Collection<Object> target, BeanDefinition bd, String defaultElementType) void
BeanDefinitionParserDelegate.parseConstructorArgElement
(Element ele, BeanDefinition bd) Parse a constructor-arg element.void
BeanDefinitionParserDelegate.parseConstructorArgElements
(Element beanEle, BeanDefinition bd) Parse constructor-arg sub-elements of the given bean element.BeanDefinitionParserDelegate.parseCustomElement
(Element ele, BeanDefinition containingBd) Parse a custom element (outside the default namespace).protected Object
BeanDefinitionParserDelegate.parseKeyElement
(Element keyEle, BeanDefinition bd, String defaultKeyTypeName) Parse a key sub-element of a map element.BeanDefinitionParserDelegate.parseListElement
(Element collectionEle, BeanDefinition bd) Parse a list element.BeanDefinitionParserDelegate.parseMapElement
(Element mapEle, BeanDefinition bd) Parse a map element.void
BeanDefinitionParserDelegate.parsePropertyElement
(Element ele, BeanDefinition bd) Parse a property element.void
BeanDefinitionParserDelegate.parsePropertyElements
(Element beanEle, BeanDefinition bd) Parse property sub-elements of the given bean element.BeanDefinitionParserDelegate.parsePropertySubElement
(Element ele, BeanDefinition bd) Parse a value, ref or collection sub-element of a property or constructor-arg element.BeanDefinitionParserDelegate.parsePropertySubElement
(Element ele, BeanDefinition bd, String defaultValueType) Parse a value, ref or collection sub-element of a property or constructor-arg element.BeanDefinitionParserDelegate.parsePropertyValue
(Element ele, BeanDefinition bd, String propertyName) Get the value of a property element.BeanDefinitionParserDelegate.parseSetElement
(Element collectionEle, BeanDefinition bd) Parse a set element.XmlReaderContext.registerWithGeneratedName
(BeanDefinition beanDefinition) Call the bean name generator for the given bean definition and register the bean definition under the generated name.ModifierConstructorDescriptionParserContext
(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition) -
Uses of BeanDefinition in org.springframework.context.annotation
Modifier and TypeClassDescriptionclass
Extension of theGenericBeanDefinition
class, based on an ASM ClassReader, with support for annotation metadata exposed through theAnnotatedBeanDefinition
interface.Modifier and TypeMethodDescriptionAnnotationConfigBeanDefinitionParser.parse
(Element element, ParserContext parserContext) ComponentScanBeanDefinitionParser.parse
(Element element, ParserContext parserContext) Modifier and TypeMethodDescriptionClassPathScanningCandidateComponentProvider.findCandidateComponents
(String basePackage) Scan the component index or class path for candidate components.Modifier and TypeMethodDescriptionprotected String
AnnotationBeanNameGenerator.buildDefaultBeanName
(BeanDefinition definition) Derive a default bean name from the given bean definition.protected String
AnnotationBeanNameGenerator.buildDefaultBeanName
(BeanDefinition definition, BeanDefinitionRegistry registry) Derive a default bean name from the given bean definition.protected String
FullyQualifiedAnnotationBeanNameGenerator.buildDefaultBeanName
(BeanDefinition definition) protected boolean
ClassPathBeanDefinitionScanner.checkCandidate
(String beanName, BeanDefinition beanDefinition) Check the given candidate's bean name, determining whether the corresponding bean definition needs to be registered or conflicts with an existing definition.AnnotationBeanNameGenerator.generateBeanName
(BeanDefinition definition, BeanDefinitionRegistry registry) static int
ConfigurationClassUtils.getOrder
(BeanDefinition beanDef) Determine the order for the given configuration class bean definition, as set byConfigurationClassUtils.checkConfigurationClassCandidate(org.springframework.beans.factory.config.BeanDefinition, org.springframework.core.type.classreading.MetadataReaderFactory)
.protected boolean
ClassPathBeanDefinitionScanner.isCompatible
(BeanDefinition newDef, BeanDefinition existingDef) Determine whether the given new bean definition is compatible with the given existing bean definition.AnnotationScopeMetadataResolver.resolveScopeMetadata
(BeanDefinition definition) Jsr330ScopeMetadataResolver.resolveScopeMetadata
(BeanDefinition definition) ScopeMetadataResolver.resolveScopeMetadata
(BeanDefinition definition) Resolve theScopeMetadata
appropriate to the supplied beandefinition
. -
Uses of BeanDefinition in org.springframework.context.support
Modifier and TypeMethodDescriptionvoid
GenericApplicationContext.registerBeanDefinition
(String beanName, BeanDefinition beanDefinition) -
Uses of BeanDefinition in org.springframework.scheduling.config
Modifier and TypeMethodDescriptionAnnotationDrivenBeanDefinitionParser.parse
(Element element, ParserContext parserContext) -
Uses of BeanDefinition in org.springframework.scripting.config
Modifier and TypeMethodDescriptionstatic BeanDefinition
LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary
(BeanDefinitionRegistry registry) Register aScriptFactoryPostProcessor
bean definition in the suppliedBeanDefinitionRegistry
if theScriptFactoryPostProcessor
hasn't already been registered. -
Uses of BeanDefinition in org.springframework.scripting.support
Modifier and TypeMethodDescriptionprotected BeanDefinition
ScriptFactoryPostProcessor.createScriptedObjectBeanDefinition
(BeanDefinition bd, String scriptFactoryBeanName, ScriptSource scriptSource, Class<?>[] interfaces) Create a bean definition for the scripted object, based on the given script definition, extracting the definition data that is relevant for the scripted object (that is, everything but bean class and constructor arguments).protected BeanDefinition
ScriptFactoryPostProcessor.createScriptFactoryBeanDefinition
(BeanDefinition bd) Create a ScriptFactory bean definition based on the given script definition, extracting only the definition data that is relevant for the ScriptFactory (that is, only bean class and constructor arguments).Modifier and TypeMethodDescriptionprotected Class<?>
ScriptFactoryPostProcessor.createConfigInterface
(BeanDefinition bd, Class<?>[] interfaces) Create a config interface for the given bean definition, defining setter methods for the defined property values as well as an init method and a destroy method (if defined).protected BeanDefinition
ScriptFactoryPostProcessor.createScriptedObjectBeanDefinition
(BeanDefinition bd, String scriptFactoryBeanName, ScriptSource scriptSource, Class<?>[] interfaces) Create a bean definition for the scripted object, based on the given script definition, extracting the definition data that is relevant for the scripted object (that is, everything but bean class and constructor arguments).protected BeanDefinition
ScriptFactoryPostProcessor.createScriptFactoryBeanDefinition
(BeanDefinition bd) Create a ScriptFactory bean definition based on the given script definition, extracting only the definition data that is relevant for the ScriptFactory (that is, only bean class and constructor arguments).protected void
ScriptFactoryPostProcessor.prepareScriptBeans
(BeanDefinition bd, String scriptFactoryBeanName, String scriptedObjectBeanName) Prepare the script beans in the internal BeanFactory that this post-processor uses.protected boolean
ScriptFactoryPostProcessor.resolveProxyTargetClass
(BeanDefinition beanDefinition) protected long
ScriptFactoryPostProcessor.resolveRefreshCheckDelay
(BeanDefinition beanDefinition) Get the refresh check delay for the givenScriptFactory
BeanDefinition
. -
Uses of BeanDefinition in org.springframework.web.servlet.config
Modifier and TypeMethodDescriptionCorsBeanDefinitionParser.parse
(Element element, ParserContext parserContext) ViewResolversBeanDefinitionParser.parse
(Element element, ParserContext context)