类 SimpleAliasRegistry

    • 方法详细资料

      • allowAliasOverriding

        protected boolean allowAliasOverriding()
        Return whether alias overriding is allowed. Default is true.
      • hasAlias

        public boolean hasAlias​(String name,
                                String alias)
        Determine whether the given name has the given alias registered.
        参数:
        name - the name to check
        alias - the alias to look for
        从以下版本开始:
        4.2.1
      • isAlias

        public boolean isAlias​(String name)
        从接口复制的说明: AliasRegistry
        Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).
        指定者:
        isAlias 在接口中 AliasRegistry
        参数:
        name - the name to check
        返回:
        whether the given name is an alias
      • resolveAliases

        public void resolveAliases​(StringValueResolver valueResolver)
        Resolve all alias target names and aliases registered in this factory, applying the given StringValueResolver to them.

        The value resolver may for example resolve placeholders in target bean names and even in alias names.

        参数:
        valueResolver - the StringValueResolver to apply
      • canonicalName

        public String canonicalName​(String name)
        Determine the raw name, resolving aliases to canonical names.
        参数:
        name - the user-specified name
        返回:
        the transformed name