Uses of Interface
org.springframework.beans.factory.config.BeanDefinition
Packages that use 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.
Support case-by-case Bean overriding in Spring tests.
Defines the XML configuration namespace for Spring MVC.
-
Uses of BeanDefinition in org.springframework.aop.config
Methods in org.springframework.aop.config that return BeanDefinitionModifier and TypeMethodDescriptionprotected abstract BeanDefinitionAbstractInterceptorDrivenBeanDefinitionDecorator.createInterceptorDefinition(Node node) Subclasses should implement this method to return theBeanDefinitionfor the interceptor they wish to apply to the bean being decorated.AdvisorComponentDefinition.getBeanDefinitions()AspectComponentDefinition.getBeanDefinitions()PointcutComponentDefinition.getBeanDefinitions()static @Nullable BeanDefinitionAopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static @Nullable BeanDefinitionAopConfigUtils.registerAspectJAnnotationAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, @Nullable Object source) static @Nullable BeanDefinitionAopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static @Nullable BeanDefinitionAopConfigUtils.registerAspectJAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, @Nullable Object source) static @Nullable BeanDefinitionAopConfigUtils.registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry) static @Nullable BeanDefinitionAopConfigUtils.registerAutoProxyCreatorIfNecessary(BeanDefinitionRegistry registry, @Nullable Object source) Methods in org.springframework.aop.config with parameters of type BeanDefinitionModifier and TypeMethodDescriptionprotected StringAbstractInterceptorDrivenBeanDefinitionDecorator.getInterceptorNameSuffix(BeanDefinition interceptorDefinition) Constructors in org.springframework.aop.config with parameters of type BeanDefinitionModifierConstructorDescriptionAdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition) AdvisorComponentDefinition(String advisorBeanName, BeanDefinition advisorDefinition, @Nullable BeanDefinition pointcutDefinition) AspectComponentDefinition(String aspectName, BeanDefinition @Nullable [] beanDefinitions, BeanReference @Nullable [] beanReferences, @Nullable Object source) PointcutComponentDefinition(String pointcutBeanName, BeanDefinition pointcutDefinition, String expression) -
Uses of BeanDefinition in org.springframework.beans.factory.annotation
Subinterfaces of BeanDefinition in org.springframework.beans.factory.annotationModifier and TypeInterfaceDescriptioninterfaceExtendedBeanDefinitioninterface that exposesAnnotationMetadataabout its bean class - without requiring the class to be loaded yet.Classes in org.springframework.beans.factory.annotation that implement BeanDefinitionModifier and TypeClassDescriptionclassExtension of theGenericBeanDefinitionclass, adding support for annotation metadata exposed through theAnnotatedBeanDefinitioninterface. -
Uses of BeanDefinition in org.springframework.beans.factory.config
Methods in org.springframework.beans.factory.config that return BeanDefinitionModifier 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, ornullif none.Methods in org.springframework.beans.factory.config with parameters of type BeanDefinitionModifier and TypeMethodDescriptionvoidBeanDefinitionCustomizer.customize(BeanDefinition bd) Customize the given bean definition.protected voidDeprecatedBeanWarner.logDeprecatedBean(String beanName, Class<?> beanType, BeanDefinition beanDefinition) Logs a warning for a bean annotated with@Deprecated.protected voidBeanDefinitionVisitor.visitBeanClassName(BeanDefinition beanDefinition) voidBeanDefinitionVisitor.visitBeanDefinition(BeanDefinition beanDefinition) Traverse the given BeanDefinition object and the MutablePropertyValues and ConstructorArgumentValues contained in them.protected voidBeanDefinitionVisitor.visitFactoryBeanName(BeanDefinition beanDefinition) protected voidBeanDefinitionVisitor.visitFactoryMethodName(BeanDefinition beanDefinition) protected voidBeanDefinitionVisitor.visitParentName(BeanDefinition beanDefinition) protected voidBeanDefinitionVisitor.visitScope(BeanDefinition beanDefinition) Constructors in org.springframework.beans.factory.config with parameters of type BeanDefinitionModifierConstructorDescriptionBeanDefinitionHolder(BeanDefinition beanDefinition, String beanName) Create a new BeanDefinitionHolder.BeanDefinitionHolder(BeanDefinition beanDefinition, String beanName, String @Nullable [] aliases) Create a new BeanDefinitionHolder. -
Uses of BeanDefinition in org.springframework.beans.factory.parsing
Methods in org.springframework.beans.factory.parsing that return BeanDefinitionModifier and TypeMethodDescriptionAbstractComponentDefinition.getBeanDefinitions()Returns an empty array.BeanComponentDefinition.getBeanDefinitions()ComponentDefinition.getBeanDefinitions()Return theBeanDefinitionsthat were registered to form thisComponentDefinition.AbstractComponentDefinition.getInnerBeanDefinitions()Returns an empty array.BeanComponentDefinition.getInnerBeanDefinitions()ComponentDefinition.getInnerBeanDefinitions()Return theBeanDefinitionsthat represent all relevant inner beans within this component.Constructors in org.springframework.beans.factory.parsing with parameters of type BeanDefinitionModifierConstructorDescriptionBeanComponentDefinition(BeanDefinition beanDefinition, String beanName) Create a new BeanComponentDefinition for the given bean.BeanComponentDefinition(BeanDefinition beanDefinition, String beanName, String @Nullable [] aliases) Create a new BeanComponentDefinition for the given bean. -
Uses of BeanDefinition in org.springframework.beans.factory.support
Classes in org.springframework.beans.factory.support that implement BeanDefinitionModifier and TypeClassDescriptionclassBase class for concrete, full-fledgedBeanDefinitionclasses, factoring out common properties ofGenericBeanDefinition,RootBeanDefinition, andChildBeanDefinition.classBean definition for beans which inherit settings from their parent.classGenericBeanDefinition is a one-stop shop for declarative bean definition purposes.classA root bean definition represents the merged bean definition at runtime that backs a specific bean in a Spring BeanFactory.Methods in org.springframework.beans.factory.support that return BeanDefinitionModifier and TypeMethodDescriptionprotected abstract BeanDefinitionAbstractBeanFactory.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, ornullif none.Methods in org.springframework.beans.factory.support with parameters of type BeanDefinitionModifier and TypeMethodDescriptionprotected voidAbstractAutowireCapableBeanFactory.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.AbstractBeanFactory.evaluateBeanDefinitionString(@Nullable String value, @Nullable BeanDefinition beanDefinition) Evaluate the given String as contained in a bean definition, potentially resolving it as an expression.static StringBeanDefinitionReaderUtils.generateBeanName(BeanDefinition beanDefinition, BeanDefinitionRegistry registry) Generate a bean name for the given top-level bean definition, unique within the given bean factory.static StringBeanDefinitionReaderUtils.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 RootBeanDefinitionAbstractBeanFactory.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 RootBeanDefinitionAbstractBeanFactory.getMergedBeanDefinition(String beanName, BeanDefinition bd, @Nullable 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 RegisteredBeanRegisteredBean.ofInnerBean(RegisteredBean parent, @Nullable String innerBeanName, BeanDefinition innerBeanDefinition) Create a newRegisteredBeaninstance for an inner-bean.static RegisteredBeanRegisteredBean.ofInnerBean(RegisteredBean parent, BeanDefinition innerBeanDefinition) Create a newRegisteredBeaninstance for an inner-bean.voidAbstractBeanDefinition.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).voidBeanDefinitionRegistry.registerBeanDefinition(String beanName, BeanDefinition beanDefinition) Register a new bean definition with this registry.voidDefaultListableBeanFactory.registerBeanDefinition(String beanName, BeanDefinition beanDefinition) voidSimpleBeanDefinitionRegistry.registerBeanDefinition(String beanName, BeanDefinition beanDefinition) <T> TBeanDefinitionValueResolver.resolveInnerBean(@Nullable String innerBeanName, BeanDefinition innerBd, BiFunction<String, RootBeanDefinition, T> resolver) Resolve an inner bean definition and invoke the specifiedresolveron its merged bean definition.voidAbstractBeanDefinition.setOriginatingBeanDefinition(BeanDefinition originatingBd) Set the originating (for example, decorated) BeanDefinition, if any.Constructors in org.springframework.beans.factory.support with parameters of type BeanDefinitionModifierConstructorDescriptionprotectedAbstractBeanDefinition(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.BeanDefinitionOverrideException(String beanName, BeanDefinition beanDefinition, BeanDefinition existingDefinition, String msg) 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
Methods in org.springframework.beans.factory.xml that return BeanDefinitionModifier and TypeMethodDescriptionParserContext.getContainingBeanDefinition()final @Nullable BeanDefinitionAbstractBeanDefinitionParser.parse(Element element, ParserContext parserContext) BeanDefinitionParser.parse(Element element, ParserContext parserContext) Parse the specifiedElementand register the resultingBeanDefinition(s)with theBeanDefinitionRegistryembedded in the suppliedParserContext.NamespaceHandler.parse(Element element, ParserContext parserContext) Parse the specifiedElementand register any resultingBeanDefinitionswith theBeanDefinitionRegistrythat is embedded in the suppliedParserContext.NamespaceHandlerSupport.parse(Element element, ParserContext parserContext) Parses the suppliedElementby delegating to theBeanDefinitionParserthat 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, @Nullable BeanDefinition containingBd) Parse a custom element (outside the default namespace).Methods in org.springframework.beans.factory.xml with parameters of type BeanDefinitionModifier and TypeMethodDescriptionBeanDefinitionParserDelegate.decorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder originalDef, @Nullable BeanDefinition containingBd) Decorate the given bean definition through a namespace handler, if applicable.BeanDefinitionParserDelegate.decorateIfRequired(Node node, BeanDefinitionHolder originalDef, @Nullable 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, @Nullable BeanDefinition bd) Parse an array element.BeanDefinitionParserDelegate.parseBeanDefinitionAttributes(Element ele, String beanName, @Nullable BeanDefinition containingBean, AbstractBeanDefinition bd) Apply the attributes of the given bean element to the given bean * definition.BeanDefinitionParserDelegate.parseBeanDefinitionElement(Element ele, String beanName, @Nullable BeanDefinition containingBean) Parse the bean definition itself, without regard to name or aliases.BeanDefinitionParserDelegate.parseBeanDefinitionElement(Element ele, @Nullable BeanDefinition containingBean) Parses the supplied<bean>element.protected voidBeanDefinitionParserDelegate.parseCollectionElements(NodeList elementNodes, Collection<Object> target, @Nullable BeanDefinition bd, String defaultElementType) voidBeanDefinitionParserDelegate.parseConstructorArgElement(Element ele, BeanDefinition bd) Parse a constructor-arg element.voidBeanDefinitionParserDelegate.parseConstructorArgElements(Element beanEle, BeanDefinition bd) Parse constructor-arg sub-elements of the given bean element.BeanDefinitionParserDelegate.parseCustomElement(Element ele, @Nullable BeanDefinition containingBd) Parse a custom element (outside the default namespace).BeanDefinitionParserDelegate.parseKeyElement(Element keyEle, @Nullable BeanDefinition bd, String defaultKeyTypeName) Parse a key sub-element of a map element.BeanDefinitionParserDelegate.parseListElement(Element collectionEle, @Nullable BeanDefinition bd) Parse a list element.BeanDefinitionParserDelegate.parseMapElement(Element mapEle, @Nullable BeanDefinition bd) Parse a map element.voidBeanDefinitionParserDelegate.parsePropertyElement(Element ele, BeanDefinition bd) Parse a property element.voidBeanDefinitionParserDelegate.parsePropertyElements(Element beanEle, BeanDefinition bd) Parse property sub-elements of the given bean element.BeanDefinitionParserDelegate.parsePropertySubElement(Element ele, @Nullable BeanDefinition bd) Parse a value, ref or collection sub-element of a property or constructor-arg element.BeanDefinitionParserDelegate.parsePropertySubElement(Element ele, @Nullable BeanDefinition bd, @Nullable String defaultValueType) Parse a value, ref or collection sub-element of a property or constructor-arg element.BeanDefinitionParserDelegate.parsePropertyValue(Element ele, BeanDefinition bd, @Nullable String propertyName) Get the value of a property element.BeanDefinitionParserDelegate.parseSetElement(Element collectionEle, @Nullable 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.Constructors in org.springframework.beans.factory.xml with parameters of type BeanDefinitionModifierConstructorDescriptionParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, @Nullable BeanDefinition containingBeanDefinition) -
Uses of BeanDefinition in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement BeanDefinitionModifier and TypeClassDescriptionclassExtension of theGenericBeanDefinitionclass, based on an ASM ClassReader, with support for annotation metadata exposed through theAnnotatedBeanDefinitioninterface.Methods in org.springframework.context.annotation that return BeanDefinitionModifier and TypeMethodDescriptionAnnotationConfigBeanDefinitionParser.parse(Element element, ParserContext parserContext) ComponentScanBeanDefinitionParser.parse(Element element, ParserContext parserContext) Methods in org.springframework.context.annotation that return types with arguments of type BeanDefinitionModifier and TypeMethodDescriptionClassPathScanningCandidateComponentProvider.findCandidateComponents(String basePackage) Scan the component index or class path for candidate components.Methods in org.springframework.context.annotation with parameters of type BeanDefinitionModifier and TypeMethodDescriptionprotected StringAnnotationBeanNameGenerator.buildDefaultBeanName(BeanDefinition definition) Derive a default bean name from the given bean definition.protected StringAnnotationBeanNameGenerator.buildDefaultBeanName(BeanDefinition definition, BeanDefinitionRegistry registry) Derive a default bean name from the given bean definition.protected StringFullyQualifiedAnnotationBeanNameGenerator.buildDefaultBeanName(BeanDefinition definition) protected booleanClassPathBeanDefinitionScanner.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 intConfigurationClassUtils.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 booleanClassPathBeanDefinitionScanner.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 theScopeMetadataappropriate to the supplied beandefinition. -
Uses of BeanDefinition in org.springframework.context.support
Methods in org.springframework.context.support that return BeanDefinitionMethods in org.springframework.context.support with parameters of type BeanDefinitionModifier and TypeMethodDescriptionvoidGenericApplicationContext.registerBeanDefinition(String beanName, BeanDefinition beanDefinition) -
Uses of BeanDefinition in org.springframework.scheduling.config
Methods in org.springframework.scheduling.config that return BeanDefinitionModifier and TypeMethodDescriptionAnnotationDrivenBeanDefinitionParser.parse(Element element, ParserContext parserContext) -
Uses of BeanDefinition in org.springframework.scripting.config
Methods in org.springframework.scripting.config that return BeanDefinitionModifier and TypeMethodDescriptionstatic BeanDefinitionLangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(BeanDefinitionRegistry registry) Register aScriptFactoryPostProcessorbean definition in the suppliedBeanDefinitionRegistryif theScriptFactoryPostProcessorhasn't already been registered. -
Uses of BeanDefinition in org.springframework.scripting.support
Methods in org.springframework.scripting.support that return BeanDefinitionModifier and TypeMethodDescriptionprotected BeanDefinitionScriptFactoryPostProcessor.createScriptedObjectBeanDefinition(BeanDefinition bd, String scriptFactoryBeanName, ScriptSource scriptSource, Class<?> @Nullable [] 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 BeanDefinitionScriptFactoryPostProcessor.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).Methods in org.springframework.scripting.support with parameters of type BeanDefinitionModifier and TypeMethodDescriptionprotected Class<?> ScriptFactoryPostProcessor.createConfigInterface(BeanDefinition bd, Class<?> @Nullable [] 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 BeanDefinitionScriptFactoryPostProcessor.createScriptedObjectBeanDefinition(BeanDefinition bd, String scriptFactoryBeanName, ScriptSource scriptSource, Class<?> @Nullable [] 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 BeanDefinitionScriptFactoryPostProcessor.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 voidScriptFactoryPostProcessor.prepareScriptBeans(BeanDefinition bd, String scriptFactoryBeanName, String scriptedObjectBeanName) Prepare the script beans in the internal BeanFactory that this post-processor uses.protected booleanScriptFactoryPostProcessor.resolveProxyTargetClass(BeanDefinition beanDefinition) protected longScriptFactoryPostProcessor.resolveRefreshCheckDelay(BeanDefinition beanDefinition) Get the refresh check delay for the givenScriptFactoryBeanDefinition. -
Uses of BeanDefinition in org.springframework.test.context.bean.override
Methods in org.springframework.test.context.bean.override with parameters of type BeanDefinitionModifier and TypeMethodDescriptionprotected abstract ObjectBeanOverrideHandler.createOverrideInstance(String beanName, @Nullable BeanDefinition existingBeanDefinition, @Nullable Object existingBeanInstance) Create a bean override instance for an existingBeanDefinitionor an existing singleton bean, based on the metadata in thisBeanOverrideHandler. -
Uses of BeanDefinition in org.springframework.web.servlet.config
Methods in org.springframework.web.servlet.config that return BeanDefinitionModifier and TypeMethodDescriptionCorsBeanDefinitionParser.parse(Element element, ParserContext parserContext) ViewResolversBeanDefinitionParser.parse(Element element, ParserContext context)