Also: SpringCore
public interface

AliasRegistry

org.springframework.core.AliasRegistry
Known Indirect Subclasses

Class Overview

Common interface for managing aliases. Serves as super-interface for BeanDefinitionRegistry.

Summary

Public Methods
abstract String[] getAliases(String name)
Return the aliases for the given name, if defined.
abstract boolean isAlias(String beanName)
Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).
abstract void registerAlias(String name, String alias)
Given a name, register an alias for it.
abstract void removeAlias(String alias)
Remove the specified alias from this registry.

Public Methods

public abstract String[] getAliases (String name)

Also: SpringCore

Return the aliases for the given name, if defined.

Parameters
name the name to check for aliases
Returns
  • the aliases, or an empty array if none

public abstract boolean isAlias (String beanName)

Also: SpringCore

Determine whether this given name is defines as an alias (as opposed to the name of an actually registered component).

Parameters
beanName the bean name to check
Returns
  • whether the given name is an alias

public abstract void registerAlias (String name, String alias)

Also: SpringCore

Given a name, register an alias for it.

Parameters
name the canonical name
alias the alias to be registered
Throws
IllegalStateException if the alias is already in use and may not be overridden

public abstract void removeAlias (String alias)

Also: SpringCore

Remove the specified alias from this registry.

Parameters
alias the alias to remove
Throws
IllegalStateException if no such alias was found