org.springframework.core

## 接口 AliasRegistry

- 所有已知实现类:
    SimpleAliasRegistry

      public interface AliasRegistry

  Common interface for managing aliases. Serves as super-interface for `org.springframework.beans.factory.support.BeanDefinitionRegistry`.
  从以下版本开始:
    2.5.2
  作者:
    Juergen Hoeller

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | `getAliases(String name)` Return the aliases for the given name, if defined.
    `boolean` | `isAlias(String name)` Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).
    `void` | `registerAlias(String name, String alias)` Given a name, register an alias for it.
    `void` | `removeAlias(String alias)` Remove the specified alias from this registry.

- - ### 方法详细资料

    - #### registerAlias

          void registerAlias(String name,
                             String alias)

      Given a name, register an alias for it.
      参数:
        `name` - the canonical name
        `alias` - the alias to be registered
      抛出:
        `IllegalStateException` - if the alias is already in use and may not be overridden

    - #### removeAlias

          void removeAlias(String alias)

      Remove the specified alias from this registry.
      参数:
        `alias` - the alias to remove
      抛出:
        `IllegalStateException` - if no such alias was found

    - #### isAlias

          boolean isAlias(String name)

      Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).
      参数:
        `name` - the name to check
      返回:
        whether the given name is an alias

    - #### getAliases

          String[] getAliases(String name)

      Return the aliases for the given name, if defined.
      参数:
        `name` - the name to check for aliases
      返回:
        the aliases, or an empty array if none