org.springframework.beans.factory.parsing

## 类 NullSourceExtractor

- java.lang.Object
- - org.springframework.beans.factory.parsing.NullSourceExtractor

- 所有已实现的接口:
    SourceExtractor

      public class NullSourceExtractor
      extends Object
      implements SourceExtractor

  Simple implementation of `SourceExtractor` that returns `null` as the source metadata.

  This is the default implementation and prevents too much metadata from being held in memory during normal (non-tooled) runtime usage.

  从以下版本开始:
    2.0
  作者:
    Rob Harrop

- - ### 构造器概要

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

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `Object` | `extractSource(Object sourceCandidate, org.springframework.core.io.Resource definitionResource)` This implementation simply returns `null` for any input.

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

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

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

    - #### NullSourceExtractor

          public NullSourceExtractor()

  - ### 方法详细资料

    - #### extractSource

          @Nullable
          public Object extractSource(Object sourceCandidate,
                                                 @Nullable
                                                 org.springframework.core.io.Resource definitionResource)

      This implementation simply returns `null` for any input.
      指定者:
        `extractSource` 在接口中 `SourceExtractor`
      参数:
        `sourceCandidate` - the original source metadata (never `null`)
        `definitionResource` - the resource that defines the given source object (may be `null`)
      返回:
        the source metadata object to store (may be `null`)