org.springframework.context.annotation

## 类 ComponentScanBeanDefinitionParser

- java.lang.Object
- - org.springframework.context.annotation.ComponentScanBeanDefinitionParser

- 所有已实现的接口:
    org.springframework.beans.factory.xml.BeanDefinitionParser

      public class ComponentScanBeanDefinitionParser
      extends Object
      implements org.springframework.beans.factory.xml.BeanDefinitionParser

  Parser for the `<context:component-scan/>` element.
  从以下版本开始:
    2.5
  作者:
    Mark Fisher, Ramnivas Laddad, Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `ComponentScanBeanDefinitionParser()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected ClassPathBeanDefinitionScanner` | `configureScanner(org.springframework.beans.factory.xml.ParserContext parserContext, Element element)`
    `protected ClassPathBeanDefinitionScanner` | `createScanner(org.springframework.beans.factory.xml.XmlReaderContext readerContext, boolean useDefaultFilters)`
    `protected org.springframework.core.type.filter.TypeFilter` | `createTypeFilter(Element element, ClassLoader classLoader, org.springframework.beans.factory.xml.ParserContext parserContext)`
    `org.springframework.beans.factory.config.BeanDefinition` | `parse(Element element, org.springframework.beans.factory.xml.ParserContext parserContext)`
    `protected void` | `parseBeanNameGenerator(Element element, ClassPathBeanDefinitionScanner scanner)`
    `protected void` | `parseScope(Element element, ClassPathBeanDefinitionScanner scanner)`
    `protected void` | `parseTypeFilters(Element element, ClassPathBeanDefinitionScanner scanner, org.springframework.beans.factory.xml.ParserContext parserContext)`
    `protected void` | `registerComponents(org.springframework.beans.factory.xml.XmlReaderContext readerContext, Set<org.springframework.beans.factory.config.BeanDefinitionHolder> beanDefinitions, Element element)`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ComponentScanBeanDefinitionParser

          public ComponentScanBeanDefinitionParser()

  - ### 方法详细资料

    - #### parse

          @Nullable
          public org.springframework.beans.factory.config.BeanDefinition parse(Element element,
                                                                                          org.springframework.beans.factory.xml.ParserContext parserContext)

      指定者:
        `parse` 在接口中 `org.springframework.beans.factory.xml.BeanDefinitionParser`

    - #### configureScanner

          protected ClassPathBeanDefinitionScanner configureScanner(org.springframework.beans.factory.xml.ParserContext parserContext,
                                                                    Element element)

    - #### createScanner

          protected ClassPathBeanDefinitionScanner createScanner(org.springframework.beans.factory.xml.XmlReaderContext readerContext,
                                                                 boolean useDefaultFilters)

    - #### registerComponents

          protected void registerComponents(org.springframework.beans.factory.xml.XmlReaderContext readerContext,
                                            Set<org.springframework.beans.factory.config.BeanDefinitionHolder> beanDefinitions,
                                            Element element)

    - #### parseBeanNameGenerator

          protected void parseBeanNameGenerator(Element element,
                                                ClassPathBeanDefinitionScanner scanner)

    - #### parseScope

          protected void parseScope(Element element,
                                    ClassPathBeanDefinitionScanner scanner)

    - #### parseTypeFilters

          protected void parseTypeFilters(Element element,
                                          ClassPathBeanDefinitionScanner scanner,
                                          org.springframework.beans.factory.xml.ParserContext parserContext)

    - #### createTypeFilter

          protected org.springframework.core.type.filter.TypeFilter createTypeFilter(Element element,
                                                                                     @Nullable
                                                                                     ClassLoader classLoader,
                                                                                     org.springframework.beans.factory.xml.ParserContext parserContext)
                                                                              throws ClassNotFoundException

      抛出:
        `ClassNotFoundException`