类 DefaultAliasRegistry
java.lang.Object
cn.taketoday.core.DefaultAliasRegistry
- 所有已实现的接口:
AliasRegistry
- 直接已知子类:
StandardTypeLocator
Simple implementation of the
AliasRegistry interface.
Serves as base class for
cn.taketoday.beans.factory.support.BeanDefinitionRegistry
implementations.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller, Qimiao Chen, TODAY 2021/9/30 22:40
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected booleanDetermine whether alias overriding is allowed.canonicalName(String name) Determine the raw name, resolving aliases to canonical names.protected voidcheckForAliasCircle(String name, String alias) Check whether the given name points back to the given alias as an alias in the other direction already, catching a circular reference upfront and throwing a corresponding IllegalStateException.String[]getAliases(String name) Return the aliases for the given name, if defined.getAliasList(String name) Return the aliases list for the given name, if defined.booleanDetermine whether the given name has the given alias registered.booleanDetermine whether the given name is defined as an alias (as opposed to the name of an actually registered component).voidregisterAlias(String name, String alias) Given a name, register an alias for it.voidremoveAlias(String alias) Remove the specified alias from this registry.voidresolveAliases(StringValueResolver valueResolver) Resolve all alias target names and aliases registered in this registry, applying the givenStringValueResolverto them.
-
字段详细资料
-
log
Logger available to subclasses.
-
-
构造器详细资料
-
DefaultAliasRegistry
public DefaultAliasRegistry()
-
-
方法详细资料
-
registerAlias
从接口复制的说明:AliasRegistryGiven a name, register an alias for it.- 指定者:
registerAlias在接口中AliasRegistry- 参数:
name- the canonical namealias- the alias to be registered
-
allowAliasOverriding
protected boolean allowAliasOverriding()Determine whether alias overriding is allowed.Default is
true. -
hasAlias
Determine whether the given name has the given alias registered.- 参数:
name- the name to checkalias- the alias to look for
-
removeAlias
从接口复制的说明:AliasRegistryRemove the specified alias from this registry.- 指定者:
removeAlias在接口中AliasRegistry- 参数:
alias- the alias to remove
-
isAlias
从接口复制的说明:AliasRegistryDetermine whether the given name is defined 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
-
getAliases
从接口复制的说明:AliasRegistryReturn the aliases for the given name, if defined.- 指定者:
getAliases在接口中AliasRegistry- 参数:
name- the name to check for aliases- 返回:
- the aliases, or an empty array if none
-
getAliasList
从接口复制的说明:AliasRegistryReturn the aliases list for the given name, if defined.- 指定者:
getAliasList在接口中AliasRegistry- 参数:
name- the name to check for aliases- 返回:
- the aliases, or an empty array-list if none
-
resolveAliases
Resolve all alias target names and aliases registered in this registry, applying the givenStringValueResolverto them.The value resolver may for example resolve placeholders in target bean names and even in alias names.
- 参数:
valueResolver- the StringValueResolver to apply
-
checkForAliasCircle
Check whether the given name points back to the given alias as an alias in the other direction already, catching a circular reference upfront and throwing a corresponding IllegalStateException.- 参数:
name- the candidate namealias- the candidate alias- 另请参阅:
-
canonicalName
Determine the raw name, resolving aliases to canonical names.- 参数:
name- the user-specified name- 返回:
- the transformed name
-