Uses of Interface
org.springframework.beans.factory.config.BeanDefinition
Packages that use BeanDefinition
Package
Description
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.-
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[] 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[] 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.protected ObjectAbstractBeanFactory.evaluateBeanDefinitionString(String value, 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, 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, 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(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 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, 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, 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 voidBeanDefinitionParserDelegate.parseCollectionElements(NodeList elementNodes, Collection<Object> target, 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, BeanDefinition containingBd) Parse a custom element (outside the default namespace).protected ObjectBeanDefinitionParserDelegate.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.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, 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.Constructors in org.springframework.beans.factory.xml with parameters of type BeanDefinitionModifierConstructorDescriptionParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition)