The Spring Framework

## Uses of Interface
org.springframework.beans.factory.config.BeanDefinition

Packages that use BeanDefinition
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 the `org.springframework.beans.factory` package.
org.springframework.beans.factory.xml: Contains an abstract XML-based `BeanFactory` implementation, including a standard "spring-beans" DTD.
org.springframework.context.annotation: Annotation support for context configuration, including classpath scanning for autowire candidates.
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.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.

Uses of BeanDefinition in org.springframework.aop.config

Methods in org.springframework.aop.config that return BeanDefinition
`protected abstract BeanDefinition` `AbstractInterceptorDrivenBeanDefinitionDecorator.createInterceptorDefinition(Node node)` Subclasses should implement this method to return the `BeanDefinition` for the interceptor they wish to apply to the bean being decorated.
`BeanDefinition[]` `AspectComponentDefinition.getBeanDefinitions()`
`BeanDefinition[]` `AdvisorComponentDefinition.getBeanDefinitions()`
`BeanDefinition[]` `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)`

Methods in org.springframework.aop.config with parameters of type BeanDefinition
`protected String` `AbstractInterceptorDrivenBeanDefinitionDecorator.getInterceptorNameSuffix(BeanDefinition interceptorDefinition)`

Constructors in org.springframework.aop.config with parameters of type BeanDefinition
`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
`interface` `AnnotatedBeanDefinition` Extended `BeanDefinition` interface that exposes `AnnotationMetadata` about its bean class - without requiring the class to be loaded yet.

Classes in org.springframework.beans.factory.annotation that implement BeanDefinition
`class` `AnnotatedGenericBeanDefinition` Extension of the `GenericBeanDefinition` class, adding support for annotation metadata exposed through the `AnnotatedBeanDefinition` interface.

Uses of BeanDefinition in org.springframework.beans.factory.config

Methods in org.springframework.beans.factory.config that return BeanDefinition
`BeanDefinition` `BeanDefinitionHolder.getBeanDefinition()` Return the wrapped BeanDefinition.
`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).
`BeanDefinition` `ConfigurableBeanFactory.getMergedBeanDefinition(String beanName)` Return a merged BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.
`BeanDefinition` `BeanDefinition.getOriginatingBeanDefinition()` Return the originating BeanDefinition, or `null` if none.

Methods in org.springframework.beans.factory.config with parameters of type BeanDefinition
`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)`

Constructors in org.springframework.beans.factory.config with parameters of type BeanDefinition
`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
`BeanDefinition[]` `ComponentDefinition.getBeanDefinitions()` Return the `BeanDefinitions` that were registered to form this `ComponentDefinition`.
`BeanDefinition[]` `BeanComponentDefinition.getBeanDefinitions()`
`BeanDefinition[]` `AbstractComponentDefinition.getBeanDefinitions()` Returns an empty array.
`BeanDefinition[]` `ComponentDefinition.getInnerBeanDefinitions()` Return the `BeanDefinitions` that represent all relevant inner beans within this component.
`BeanDefinition[]` `BeanComponentDefinition.getInnerBeanDefinitions()`
`BeanDefinition[]` `AbstractComponentDefinition.getInnerBeanDefinitions()` Returns an empty array.

Constructors in org.springframework.beans.factory.parsing with parameters of type BeanDefinition
`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
`class` `AbstractBeanDefinition` Base class for concrete, full-fledged `BeanDefinition` classes, factoring out common properties of `RootBeanDefinition` and `ChildBeanDefinition`.
`class` `ChildBeanDefinition` Bean definition for beans which inherit settings from their parent.
`class` `GenericBeanDefinition` GenericBeanDefinition is a one-stop shop for standard bean definition purposes.
`class` `RootBeanDefinition` A 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
`protected abstract BeanDefinition` `AbstractBeanFactory.getBeanDefinition(String beanName)` Return the bean definition for the given bean name.
`BeanDefinition` `DefaultListableBeanFactory.getBeanDefinition(String beanName)`
`BeanDefinition` `SimpleBeanDefinitionRegistry.getBeanDefinition(String beanName)`
`BeanDefinition` `BeanDefinitionRegistry.getBeanDefinition(String beanName)` Return the BeanDefinition for the given bean name.
`BeanDefinition` `AbstractBeanFactory.getMergedBeanDefinition(String name)` Return a 'merged' BeanDefinition for the given bean name, merging a child bean definition with its parent if necessary.
`BeanDefinition` `AbstractBeanDefinition.getOriginatingBeanDefinition()`

Methods in org.springframework.beans.factory.support with parameters of type BeanDefinition
`protected 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.
`String` `DefaultBeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)`
`String` `BeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)` Generate a bean name for the given bean definition.
`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.
`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.
`void` `AbstractBeanDefinition.overrideFrom(BeanDefinition other)` Override settings in this bean definition (assumably a copied parent from a parent-child inheritance relationship) from the given bean definition (assumably the child).
`void` `DefaultListableBeanFactory.registerBeanDefinition(String beanName, BeanDefinition beanDefinition)`
`void` `SimpleBeanDefinitionRegistry.registerBeanDefinition(String beanName, BeanDefinition beanDefinition)`
`void` `BeanDefinitionRegistry.registerBeanDefinition(String beanName, BeanDefinition beanDefinition)` Register a new bean definition with this registry.
`void` `AbstractBeanDefinition.setOriginatingBeanDefinition(BeanDefinition originatingBd)` Set the originating (e.g. decorated) BeanDefinition, if any.

Constructors in org.springframework.beans.factory.support with parameters of type BeanDefinition
`AbstractBeanDefinition(BeanDefinition original)` Create a new AbstractBeanDefinition as deep copy of the given bean 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
`BeanDefinition` `ParserContext.getContainingBeanDefinition()`
`BeanDefinition` `AbstractBeanDefinitionParser.parse(Element element, ParserContext parserContext)`
`BeanDefinition` `SimplePropertyNamespaceHandler.parse(Element element, ParserContext parserContext)`
`BeanDefinition` `NamespaceHandlerSupport.parse(Element element, ParserContext parserContext)` Parses the supplied `Element` by delegating to the `BeanDefinitionParser` that is registered for that `Element`.
`BeanDefinition` `NamespaceHandler.parse(Element element, ParserContext parserContext)` Parse the specified `Element` and register any resulting `BeanDefinitions` with the `BeanDefinitionRegistry` that is embedded in the supplied `ParserContext`.
`BeanDefinition` `BeanDefinitionParser.parse(Element element, ParserContext parserContext)` Parse the specified `Element` and register the resulting `BeanDefinition(s)` with the `ParserContext.getRegistry()` BeanDefinitionRegistry} embedded in the supplied `ParserContext`.
`BeanDefinition` `BeanDefinitionParserDelegate.parseCustomElement(Element ele)`
`BeanDefinition` `BeanDefinitionParserDelegate.parseCustomElement(Element ele, BeanDefinition containingBd)`

Methods in org.springframework.beans.factory.xml with parameters of type BeanDefinition
`String` `XmlReaderContext.generateBeanName(BeanDefinition beanDefinition)`
`BeanDefinitionHolder` `BeanDefinitionParserDelegate.parseBeanDefinitionElement(Element ele, BeanDefinition containingBean)` Parses the supplied `<bean>` element.
`AbstractBeanDefinition` `BeanDefinitionParserDelegate.parseBeanDefinitionElement(Element ele, String beanName, BeanDefinition containingBean)` Parse the bean definition itself, without regard to name or aliases.
`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.
`BeanDefinition` `BeanDefinitionParserDelegate.parseCustomElement(Element ele, BeanDefinition containingBd)`
`Object` `BeanDefinitionParserDelegate.parseKeyElement(Element keyEle, BeanDefinition bd, String defaultKeyTypeClassName)` Parse a key sub-element of a map element.
`List` `BeanDefinitionParserDelegate.parseListElement(Element collectionEle, BeanDefinition bd)` Parse a list element.
`Map` `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.
`Object` `BeanDefinitionParserDelegate.parsePropertySubElement(Element ele, BeanDefinition bd)`
`Object` `BeanDefinitionParserDelegate.parsePropertySubElement(Element ele, BeanDefinition bd, String defaultTypeClassName)` Parse a value, ref or collection sub-element of a property or constructor-arg element.
`Object` `BeanDefinitionParserDelegate.parsePropertyValue(Element ele, BeanDefinition bd, String propertyName)` Get the value of a property element.
`Set` `BeanDefinitionParserDelegate.parseSetElement(Element collectionEle, BeanDefinition bd)` Parse a set element.
`String` `XmlReaderContext.registerWithGeneratedName(BeanDefinition beanDefinition)`

Constructors in org.springframework.beans.factory.xml with parameters of type BeanDefinition
`ParserContext(XmlReaderContext readerContext, BeanDefinitionParserDelegate delegate, BeanDefinition containingBeanDefinition)`

Uses of BeanDefinition in org.springframework.context.annotation

Classes in org.springframework.context.annotation that implement BeanDefinition
`class` `ScannedGenericBeanDefinition` Extension of the `GenericBeanDefinition` class, based on an ASM ClassReader, with support for annotation metadata exposed through the `AnnotatedBeanDefinition` interface.

Methods in org.springframework.context.annotation that return BeanDefinition
`BeanDefinition` `AnnotationConfigBeanDefinitionParser.parse(Element element, ParserContext parserContext)`
`BeanDefinition` `ComponentScanBeanDefinitionParser.parse(Element element, ParserContext parserContext)`

Methods in org.springframework.context.annotation that return types with arguments of type BeanDefinition
`Set<BeanDefinition>` `ClassPathScanningCandidateComponentProvider.findCandidateComponents(String basePackage)` Scan the class path for candidate components.

Methods in org.springframework.context.annotation with parameters of type BeanDefinition
`protected String` `AnnotationBeanNameGenerator.buildDefaultBeanName(BeanDefinition definition)` Derive a default bean name from the given bean 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.
`String` `AnnotationBeanNameGenerator.generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)`
`protected boolean` `ClassPathBeanDefinitionScanner.isCompatible(BeanDefinition newDefinition, BeanDefinition existingDefinition)` Determine whether the given new bean definition is compatible with the given existing bean definition.
`ScopeMetadata` `ScopeMetadataResolver.resolveScopeMetadata(BeanDefinition definition)` Resolve the `ScopeMetadata` appropriate to the supplied bean `definition`.
`ScopeMetadata` `AnnotationScopeMetadataResolver.resolveScopeMetadata(BeanDefinition definition)`

Uses of BeanDefinition in org.springframework.context.support

Methods in org.springframework.context.support that return BeanDefinition
`BeanDefinition` `GenericApplicationContext.getBeanDefinition(String beanName)`

Methods in org.springframework.context.support with parameters of type BeanDefinition
`void` `GenericApplicationContext.registerBeanDefinition(String beanName, BeanDefinition beanDefinition)`

Uses of BeanDefinition in org.springframework.scripting.config

Methods in org.springframework.scripting.config that return BeanDefinition
`BeanDefinition` `ScriptingDefaultsParser.parse(Element element, ParserContext parserContext)`
`static BeanDefinition` `LangNamespaceUtils.registerScriptFactoryPostProcessorIfNecessary(BeanDefinitionRegistry registry)` Register a `ScriptFactoryPostProcessor` bean definition in the supplied `BeanDefinitionRegistry` if the `ScriptFactoryPostProcessor` hasn't already been registered.

Uses of BeanDefinition in org.springframework.scripting.support

Methods in org.springframework.scripting.support that return BeanDefinition

`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).

Methods in org.springframework.scripting.support with parameters of type BeanDefinition
`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 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 long` `ScriptFactoryPostProcessor.resolveRefreshCheckDelay(BeanDefinition beanDefinition)` Get the refresh check delay for the given `ScriptFactory` `BeanDefinition`.

The Spring Framework

Copyright © 2002-2008 The Spring Framework.