java.lang.Object | |
↳ | org.springframework.core.SimpleAliasRegistry |
Known Direct Subclasses |
Known Indirect Subclasses |
Simple implementation of the AliasRegistry
interface.
Serves as base class for
BeanDefinitionRegistry
implementations.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determine the raw name, resolving aliases to canonical names.
| |||||||||||
Return the aliases for the given name, if defined.
| |||||||||||
Determine whether this given name is defines as an alias
(as opposed to the name of an actually registered component).
| |||||||||||
Given a name, register an alias for it.
| |||||||||||
Remove the specified alias from this registry.
| |||||||||||
Resolve all alias target names and aliases registered in this
factory, applying the given StringValueResolver to them.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return whether alias overriding is allowed.
| |||||||||||
Check whether the given name points back to given alias as an alias
in the other direction, catching a circular reference upfront and
throwing a corresponding IllegalStateException.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.core.AliasRegistry
|
Determine the raw name, resolving aliases to canonical names.
name | the user-specified name |
---|
Return the aliases for the given name, if defined.
name | the name to check for aliases |
---|
Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).
name | the bean name to check |
---|
Given a name, register an alias for it.
name | the canonical name |
---|---|
alias | the alias to be registered |
Remove the specified alias from this registry.
alias | the alias to remove |
---|
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 |
---|
Return whether alias overriding is allowed.
Default is true
.
Check whether the given name points back to given alias as an alias in the other direction, catching a circular reference upfront and throwing a corresponding IllegalStateException.
name | the candidate name |
---|---|
alias | the candidate alias |