## 接口的使用
org.springframework.beans.factory.support.BeanDefinitionRegistry

- 使用BeanDefinitionRegistry的程序包
  程序包 | 说明
  --- | ---
  org.springframework.beans.factory.groovy | Support package for Groovy-based bean definitions.
  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" XSD.

- - ### org.springframework.beans.factory.groovy中BeanDefinitionRegistry的使用

    参数类型为BeanDefinitionRegistry的org.springframework.beans.factory.groovy中的构造器
    构造器和说明
    `GroovyBeanDefinitionReader(BeanDefinitionRegistry registry)` Create a new `GroovyBeanDefinitionReader` for the given `BeanDefinitionRegistry`.

  - ### org.springframework.beans.factory.support中BeanDefinitionRegistry的使用

    实现BeanDefinitionRegistry的org.springframework.beans.factory.support中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `DefaultListableBeanFactory` Spring's default implementation of the `ConfigurableListableBeanFactory` and `BeanDefinitionRegistry` interfaces: a full-fledged bean factory based on bean definition metadata, extensible through post-processors.
    `class` | `SimpleBeanDefinitionRegistry` Simple implementation of the `BeanDefinitionRegistry` interface.

    返回BeanDefinitionRegistry的org.springframework.beans.factory.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `BeanDefinitionRegistry` | AbstractBeanDefinitionReader.`getBeanFactory()`
    `BeanDefinitionRegistry` | AbstractBeanDefinitionReader.`getRegistry()`
    `BeanDefinitionRegistry` | BeanDefinitionReader.`getRegistry()` Return the bean factory to register the bean definitions with.

    参数类型为BeanDefinitionRegistry的org.springframework.beans.factory.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.
    `String` | BeanNameGenerator.`generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)` Generate a bean name for the given bean definition.
    `String` | DefaultBeanNameGenerator.`generateBeanName(BeanDefinition definition, BeanDefinitionRegistry registry)`
    `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.
    `void` | BeanDefinitionRegistryPostProcessor.`postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry)` Modify the application context's internal bean definition registry after its standard initialization.
    `static void` | BeanDefinitionReaderUtils.`registerBeanDefinition(BeanDefinitionHolder definitionHolder, BeanDefinitionRegistry registry)` Register the given bean definition with the given bean factory.
    `static String` | BeanDefinitionReaderUtils.`registerWithGeneratedName(AbstractBeanDefinition definition, BeanDefinitionRegistry registry)` Register the given bean definition with a generated name, unique within the given bean factory.

    参数类型为BeanDefinitionRegistry的org.springframework.beans.factory.support中的构造器
    构造器和说明
    `AbstractBeanDefinitionReader(BeanDefinitionRegistry registry)` Create a new AbstractBeanDefinitionReader for the given bean factory.
    `PropertiesBeanDefinitionReader(BeanDefinitionRegistry registry)` Create new PropertiesBeanDefinitionReader for the given bean factory.

  - ### org.springframework.beans.factory.xml中BeanDefinitionRegistry的使用

    实现BeanDefinitionRegistry的org.springframework.beans.factory.xml中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `XmlBeanFactory` 已过时。 as of Spring 3.1 in favor of `DefaultListableBeanFactory` and `XmlBeanDefinitionReader`

    返回BeanDefinitionRegistry的org.springframework.beans.factory.xml中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `BeanDefinitionRegistry` | ParserContext.`getRegistry()`
    `BeanDefinitionRegistry` | XmlReaderContext.`getRegistry()` Return the bean definition registry to use.

    参数类型为BeanDefinitionRegistry的org.springframework.beans.factory.xml中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | AbstractBeanDefinitionParser.`registerBeanDefinition(BeanDefinitionHolder definition, BeanDefinitionRegistry registry)` Register the supplied `bean` with the supplied `registry`.

    参数类型为BeanDefinitionRegistry的org.springframework.beans.factory.xml中的构造器
    构造器和说明
    `XmlBeanDefinitionReader(BeanDefinitionRegistry registry)` Create new XmlBeanDefinitionReader for the given bean factory.