public interface AliasRegistry
BeanDefinitionRegistry
.Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAliases(java.lang.String name)
Return the aliases for the given name, if defined.
|
boolean |
isAlias(java.lang.String name)
Determine whether this given name is defines as an alias
(as opposed to the name of an actually registered component).
|
void |
registerAlias(java.lang.String name,
java.lang.String alias)
Given a name, register an alias for it.
|
void |
removeAlias(java.lang.String alias)
Remove the specified alias from this registry.
|
void registerAlias(java.lang.String name, java.lang.String alias)
name
- the canonical namealias
- the alias to be registeredjava.lang.IllegalStateException
- if the alias is already in use
and may not be overriddenvoid removeAlias(java.lang.String alias)
alias
- the alias to removejava.lang.IllegalStateException
- if no such alias was foundboolean isAlias(java.lang.String name)
name
- the name to checkjava.lang.String[] getAliases(java.lang.String name)
name
- the name to check for aliases