Top Description Fields Constructors Methods
org.springframework.beans.factory.parsing

public Class AliasDefinition

extends Object
implements BeanMetadataElement
Class Inheritance
All Implemented Interfaces
org.springframework.beans.BeanMetadataElement
Imports
org.springframework.beans.BeanMetadataElement, org.springframework.lang.Nullable, org.springframework.util.Assert

Representation of an alias that has been registered during the parsing process.
Author
Juergen Hoeller
Since
2.0
See Also
ReaderEventListener#aliasRegistered(AliasDefinition)

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final Object

Constructor Summary

AccessConstructor and Description
public
AliasDefinition(String
the canonical name of the bean
beanName
,
String
the alias registered for the bean
alias
)

Create a new AliasDefinition.

public
AliasDefinition(String
the canonical name of the bean
beanName
,
String
the alias registered for the bean
alias
,
Object
the source object (may be null)
source
)

Create a new AliasDefinition.

Method Summary

Modifier and TypeMethod and Description
public final String
getAlias()

Return the alias registered for the bean.

public final String
getBeanName()

Return the canonical name of the bean.

public final Object
getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aliasback to summary
private final String alias
beanNameback to summary
private final String beanName
sourceback to summary
private final Object source
Annotations
@Nullable

Constructor Detail

AliasDefinitionback to summary
public AliasDefinition(String beanName, String alias)

Create a new AliasDefinition.

Parameters
beanName:String

the canonical name of the bean

alias:String

the alias registered for the bean

AliasDefinitionback to summary
public AliasDefinition(String beanName, String alias, Object source)

Create a new AliasDefinition.

Parameters
beanName:String

the canonical name of the bean

alias:String

the alias registered for the bean

source:Object

the source object (may be null)

Method Detail

getAliasback to summary
public final String getAlias()

Return the alias registered for the bean.

getBeanNameback to summary
public final String getBeanName()

Return the canonical name of the bean.

getSourceback to summary
public final Object getSource()

Overrides default org.springframework.beans.BeanMetadataElement.getSource.

Doc from org.springframework.beans.BeanMetadataElement.getSource.

Return the configuration source Object for this metadata element (may be null).

Annotations
@Override
@Nullable