|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.SimpleAliasRegistry
public class SimpleAliasRegistry
Simple implementation of the AliasRegistry
interface.
Serves as base class for
BeanDefinitionRegistry
implementations.
Constructor Summary | |
---|---|
SimpleAliasRegistry()
|
Method Summary | |
---|---|
protected boolean |
allowAliasOverriding()
Return whether alias overriding is allowed. |
String |
canonicalName(String name)
Determine the raw name, resolving aliases to canonical names. |
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. |
void |
resolveAliases(StringValueResolver valueResolver)
Resolve all alias target names and aliases registered in this factory, applying the given StringValueResolver to them. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAliasRegistry()
Method Detail |
---|
public void registerAlias(String name, String alias)
AliasRegistry
registerAlias
in interface AliasRegistry
name
- the canonical namealias
- the alias to be registeredprotected boolean allowAliasOverriding()
true
.
public void removeAlias(String alias)
AliasRegistry
removeAlias
in interface AliasRegistry
alias
- the alias to removepublic boolean isAlias(String name)
AliasRegistry
isAlias
in interface AliasRegistry
name
- the bean name to check
public String[] getAliases(String name)
AliasRegistry
getAliases
in interface AliasRegistry
name
- the name to check for aliases
public void resolveAliases(StringValueResolver valueResolver)
The value resolver may for example resolve placeholders in target bean names and even in alias names.
valueResolver
- the StringValueResolver to applypublic String canonicalName(String name)
name
- the user-specified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |