org.springframework.beans.factory.parsing

## 类 ImportDefinition

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

- 所有已实现的接口:
    BeanMetadataElement

      public class ImportDefinition
      extends Object
      implements BeanMetadataElement

  Representation of an import that has been processed during the parsing process.
  从以下版本开始:
    2.0
  作者:
    Juergen Hoeller
  另请参阅:
    `ReaderEventListener.importProcessed(ImportDefinition)`

- - ### 构造器概要

    构造器
    构造器和说明
    `ImportDefinition(String importedResource)` Create a new ImportDefinition.
    `ImportDefinition(String importedResource, Object source)` Create a new ImportDefinition.
    `ImportDefinition(String importedResource, org.springframework.core.io.Resource[] actualResources, Object source)` Create a new ImportDefinition.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `org.springframework.core.io.Resource[]` | `getActualResources()`
    `String` | `getImportedResource()` Return the location of the imported resource.
    `Object` | `getSource()` 获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).

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

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

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

    - #### ImportDefinition

          public ImportDefinition(String importedResource)

      Create a new ImportDefinition.
      参数:
        `importedResource` - the location of the imported resource

    - #### ImportDefinition

          public ImportDefinition(String importedResource,
                                  @Nullable
                                  Object source)

      Create a new ImportDefinition.
      参数:
        `importedResource` - the location of the imported resource
        `source` - the source object (may be `null`)

    - #### ImportDefinition

          public ImportDefinition(String importedResource,
                                  @Nullable
                                  org.springframework.core.io.Resource[] actualResources,
                                  @Nullable
                                  Object source)

      Create a new ImportDefinition.
      参数:
        `importedResource` - the location of the imported resource
        `source` - the source object (may be `null`)

  - ### 方法详细资料

    - #### getImportedResource

          public final String getImportedResource()

      Return the location of the imported resource.

    - #### getActualResources

          @Nullable
          public final org.springframework.core.io.Resource[] getActualResources()

    - #### getSource

          @Nullable
          public final Object getSource()

      从接口复制的说明: `BeanMetadataElement`
      获取源对象,可能返回null Return the configuration source `Object` for this metadata element (may be `null`).
      指定者:
        `getSource` 在接口中 `BeanMetadataElement`