org.springframework.beans.factory.parsing

## 类 AliasDefinition

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

- 所有已实现的接口:
    BeanMetadataElement

      public class AliasDefinition
      extends Object
      implements BeanMetadataElement

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

- - ### 构造器概要

    构造器
    构造器和说明
    `AliasDefinition(String beanName, String alias)` Create a new AliasDefinition.
    `AliasDefinition(String beanName, String alias, Object source)` Create a new AliasDefinition.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getAlias()` Return the alias registered for the bean.
    `String` | `getBeanName()` Return the canonical name of the bean.
    `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`

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

    - #### AliasDefinition

          public AliasDefinition(String beanName,
                                 String alias)

      Create a new AliasDefinition.
      参数:
        `beanName` - the canonical name of the bean
        `alias` - the alias registered for the bean

    - #### AliasDefinition

          public AliasDefinition(String beanName,
                                 String alias,
                                 @Nullable
                                 Object source)

      Create a new AliasDefinition.
      参数:
        `beanName` - the canonical name of the bean
        `alias` - the alias registered for the bean
        `source` - the source object (may be `null`)

  - ### 方法详细资料

    - #### getBeanName

          public final String getBeanName()

      Return the canonical name of the bean.

    - #### getAlias

          public final String getAlias()

      Return the alias registered for the bean.

    - #### getSource

          @Nullable
          public final Object getSource()

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