Uses of Interface
org.springframework.beans.factory.config.BeanDefinition
Packages that use BeanDefinition Package Description org.springframework.aop.config Support package for declarative AOP configuration, with XML schema being the primary configuration format.org.springframework.beans.factory.annotation Support package for annotation-driven bean configuration.org.springframework.beans.factory.config SPI interfaces and configuration-related convenience classes for bean factories.org.springframework.beans.factory.parsing Support infrastructure for bean definition parsing.org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factorypackage.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactoryimplementation, including a standard "spring-beans" XSD.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.scheduling.config Support package for declarative scheduling configuration, with XML schema being the primary configuration format.org.springframework.scripting.config Support package for Spring's dynamic language machinery, with XML schema being the primary configuration format.org.springframework.scripting.support Support classes for Spring's scripting package.org.springframework.web.servlet.config Defines the XML configuration namespace for Spring MVC.Uses of BeanDefinition in org.springframework.aop.config
Methods in org.springframework.aop.config with parameters of type BeanDefinition Modifier and Type Method Description protected StringAbstractInterceptorDrivenBeanDefinitionDecorator. getInterceptorNameSuffix(BeanDefinition interceptorDefinition)Constructors in org.springframework.aop.config with parameters of type BeanDefinition Constructor Description AdvisorComponentDefinition(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
Subinterfaces of BeanDefinition in org.springframework.beans.factory.annotation Modifier and Type Interface Description interfaceAnnotatedBeanDefinitionExtendedBeanDefinitioninterface that exposesAnnotationMetadataabout its bean class - without requiring the class to be loaded yet.Classes in org.springframework.beans.factory.annotation that implement BeanDefinition Modifier and Type Class Description classAnnotatedGenericBeanDefinitionExtension 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 BeanDefinition Modifier and Type Method Description BeanDefinitionBeanDefinitionHolder. getBeanDefinition()Return the wrapped BeanDefinition.BeanDefinitionConfigurableListableBeanFactory. 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).BeanDefinitionConfigurableBeanFactory. getMergedBeanDefinition(String beanName)Return a merged BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.BeanDefinitionBeanDefinition. getOriginatingBeanDefinition()Return the originating BeanDefinition, ornullif none.Methods in org.springframework.beans.factory.config with parameters of type BeanDefinition Modifier and Type Method Description voidBeanDefinitionCustomizer. 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 BeanDefinition Constructor Description BeanDefinitionHolder(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 BeanDefinition Modifier and Type Method Description BeanDefinition[]AbstractComponentDefinition. getBeanDefinitions()Returns an empty array.BeanDefinition[]BeanComponentDefinition. getBeanDefinitions()BeanDefinition[]ComponentDefinition. getBeanDefinitions()Return theBeanDefinitionsthat were registered to form thisComponentDefinition.BeanDefinition[]AbstractComponentDefinition. getInnerBeanDefinitions()Returns an empty array.BeanDefinition[]BeanComponentDefinition. getInnerBeanDefinitions()BeanDefinition[]ComponentDefinition. getInnerBeanDefinitions()Return theBeanDefinitionsthat represent all relevant inner beans within this component.Constructors in org.springframework.beans.factory.parsing with parameters of type BeanDefinition Constructor Description BeanComponentDefinition(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 BeanDefinition Modifier and Type Class Description classAbstractBeanDefinitionBase class for concrete, full-fledgedBeanDefinitionclasses, factoring out common properties ofGenericBeanDefinition,RootBeanDefinition, andChildBeanDefinition.classChildBeanDefinitionBean definition for beans which inherit settings from their parent.classGenericBeanDefinitionGenericBeanDefinition is a one-stop shop for standard bean definition purposes.classRootBeanDefinitionA root bean definition represents the merged bean definition that backs a specific bean in a Spring BeanFactory at runtime.Methods in org.springframework.beans.factory.support that return BeanDefinition Modifier and Type Method Description protected abstract BeanDefinitionAbstractBeanFactory. getBeanDefinition(String beanName)Return the bean definition for the given bean name.BeanDefinitionBeanDefinitionOverrideException. getBeanDefinition()Return the newly registered bean definition.BeanDefinitionBeanDefinitionRegistry. getBeanDefinition(String beanName)Return the BeanDefinition for the given bean name.BeanDefinitionDefaultListableBeanFactory. getBeanDefinition(String beanName)BeanDefinitionSimpleBeanDefinitionRegistry. getBeanDefinition(String beanName)BeanDefinitionBeanDefinitionOverrideException. getExistingDefinition()Return the existing bean definition for the same name.BeanDefinitionAbstractBeanFactory. getMergedBeanDefinition(String name)Return a 'merged' BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.BeanDefinitionAbstractBeanDefinition. getOriginatingBeanDefinition()Return the originating BeanDefinition, ornullif none.Methods in org.springframework.beans.factory.support with parameters of type BeanDefinition Modifier and Type Method Description protected 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.StringBeanNameGenerator. generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)Generate a bean name for the given bean definition.StringDefaultBeanNameGenerator. 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.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)voidAbstractBeanDefinition. setOriginatingBeanDefinition(BeanDefinition originatingBd)Set the originating (e.g.Constructors in org.springframework.beans.factory.support with parameters of type BeanDefinition Constructor Description 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.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 BeanDefinition Modifier and Type Method Description BeanDefinitionParserContext. getContainingBeanDefinition()BeanDefinitionAbstractBeanDefinitionParser. parse(Element element, ParserContext parserContext)BeanDefinitionBeanDefinitionParser. parse(Element element, ParserContext parserContext)Parse the specifiedElementand register the resultingBeanDefinition(s)with theBeanDefinitionRegistryembedded in the suppliedParserContext.BeanDefinitionNamespaceHandler. parse(Element element, ParserContext parserContext)Parse the specifiedElementand register any resultingBeanDefinitionswith theBeanDefinitionRegistrythat is embedded in the suppliedParserContext.BeanDefinitionNamespaceHandlerSupport. parse(Element element, ParserContext parserContext)Parses the suppliedElementby delegating to theBeanDefinitionParserthat is registered for thatElement.BeanDefinitionSimpleConstructorNamespaceHandler. parse(Element element, ParserContext parserContext)BeanDefinitionSimplePropertyNamespaceHandler. parse(Element element, ParserContext parserContext)BeanDefinitionBeanDefinitionParserDelegate. parseCustomElement(Element ele)Parse a custom element (outside of the default namespace).BeanDefinitionBeanDefinitionParserDelegate. parseCustomElement(Element ele, BeanDefinition containingBd)Parse a custom element (outside of the default namespace).Methods in org.springframework.beans.factory.xml with parameters of type BeanDefinition Modifier and Type Method Description BeanDefinitionHolderBeanDefinitionParserDelegate. decorateBeanDefinitionIfRequired(Element ele, BeanDefinitionHolder originalDef, BeanDefinition containingBd)Decorate the given bean definition through a namespace handler, if applicable.BeanDefinitionHolderBeanDefinitionParserDelegate. decorateIfRequired(Node node, BeanDefinitionHolder originalDef, BeanDefinition containingBd)Decorate the given bean definition through a namespace handler, if applicable.StringXmlReaderContext. generateBeanName(BeanDefinition beanDefinition)Call the bean name generator for the given bean definition.ObjectBeanDefinitionParserDelegate. parseArrayElement(Element arrayEle, BeanDefinition bd)Parse an array element.AbstractBeanDefinitionBeanDefinitionParserDelegate. parseBeanDefinitionAttributes(Element ele, String beanName, BeanDefinition containingBean, AbstractBeanDefinition bd)Apply the attributes of the given bean element to the given bean * definition.AbstractBeanDefinitionBeanDefinitionParserDelegate. parseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)Parse the bean definition itself, without regard to name or aliases.BeanDefinitionHolderBeanDefinitionParserDelegate. 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.BeanDefinitionBeanDefinitionParserDelegate. parseCustomElement(Element ele, BeanDefinition containingBd)Parse a custom element (outside of the default namespace).protected ObjectBeanDefinitionParserDelegate. parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeName)Parse a key sub-element of a map element.List<Object>BeanDefinitionParserDelegate. parseListElement(Element collectionEle, BeanDefinition bd)Parse a list element.Map<Object,Object>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.ObjectBeanDefinitionParserDelegate. parsePropertySubElement(Element ele, BeanDefinition bd)Parse a value, ref or collection sub-element of a property or constructor-arg element.ObjectBeanDefinitionParserDelegate. parsePropertySubElement(Element ele, BeanDefinition bd, String defaultValueType)Parse a value, ref or collection sub-element of a property or constructor-arg element.ObjectBeanDefinitionParserDelegate. parsePropertyValue(Element ele, BeanDefinition bd, String propertyName)Get the value of a property element.Set<Object>BeanDefinitionParserDelegate. parseSetElement(Element collectionEle, BeanDefinition bd)Parse a set element.StringXmlReaderContext. 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 BeanDefinition Constructor Description ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition)Uses of BeanDefinition in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement BeanDefinition Modifier and Type Class Description classScannedGenericBeanDefinitionExtension of theGenericBeanDefinitionclass, based on an ASM ClassReader, with support for annotation metadata exposed through theAnnotatedBeanDefinitioninterface.Methods in org.springframework.context.annotation that return BeanDefinition Modifier and Type Method Description BeanDefinitionAnnotationConfigBeanDefinitionParser. parse(Element element, ParserContext parserContext)BeanDefinitionComponentScanBeanDefinitionParser. parse(Element element, ParserContext parserContext)Methods in org.springframework.context.annotation that return types with arguments of type BeanDefinition Modifier and Type Method Description Set<BeanDefinition>ClassPathScanningCandidateComponentProvider. findCandidateComponents(String basePackage)Scan the class path for candidate components.Methods in org.springframework.context.annotation with parameters of type BeanDefinition Modifier and Type Method Description protected 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.StringAnnotationBeanNameGenerator. generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)protected booleanClassPathBeanDefinitionScanner. isCompatible(BeanDefinition newDefinition, BeanDefinition existingDefinition)Determine whether the given new bean definition is compatible with the given existing bean definition.ScopeMetadataAnnotationScopeMetadataResolver. resolveScopeMetadata(BeanDefinition definition)ScopeMetadataJsr330ScopeMetadataResolver. resolveScopeMetadata(BeanDefinition definition)ScopeMetadataScopeMetadataResolver. 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 BeanDefinition Modifier and Type Method Description BeanDefinitionGenericApplicationContext. getBeanDefinition(String beanName)Methods in org.springframework.context.support with parameters of type BeanDefinition Modifier and Type Method Description protected StringLiveBeansView. getEscapedResourceDescription(BeanDefinition bd)Determine a resource description for the given bean definition and apply basic JSON escaping (backslashes, double quotes) to it.protected booleanLiveBeansView. isBeanEligible(String beanName, BeanDefinition bd, ConfigurableBeanFactory bf)Determine whether the specified bean is eligible for inclusion in the LiveBeansView JSON snapshot.voidGenericApplicationContext. registerBeanDefinition(String beanName, BeanDefinition beanDefinition)Uses of BeanDefinition in org.springframework.scheduling.config
Methods in org.springframework.scheduling.config that return BeanDefinition Modifier and Type Method Description BeanDefinitionAnnotationDrivenBeanDefinitionParser. parse(Element element, ParserContext parserContext)Uses of BeanDefinition in org.springframework.scripting.config
Methods in org.springframework.scripting.config that return BeanDefinition Modifier and Type Method Description static 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 BeanDefinition Modifier and Type Method Description protected BeanDefinitionScriptFactoryPostProcessor. 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 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 BeanDefinition Modifier and Type Method Description protected 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 BeanDefinitionScriptFactoryPostProcessor. 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 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.web.servlet.config
Methods in org.springframework.web.servlet.config that return BeanDefinition Modifier and Type Method Description BeanDefinitionCorsBeanDefinitionParser. parse(Element element, ParserContext parserContext)BeanDefinitionViewResolversBeanDefinitionParser. parse(Element element, ParserContext context)