Class AliasDefinition
- java.lang.Object
- org.springframework.beans.factory.parsing.AliasDefinition
- All Implemented Interfaces:
BeanMetadataElement
public class AliasDefinition extends Object implements BeanMetadataElement
Representation of an alias that has been registered during the parsing process.- Since:
- 2.0
- Author:
- Juergen Hoeller
- See Also:
ReaderEventListener.aliasRegistered(AliasDefinition)
Constructor Summary
Constructors Constructor Description AliasDefinition(String beanName, String alias)Create a new AliasDefinition.AliasDefinition(String beanName, String alias, Object source)Create a new AliasDefinition.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()Return the alias registered for the bean.StringgetBeanName()Return the canonical name of the bean.ObjectgetSource()Return the configuration sourceObjectfor this metadata element (may benull).
Constructor Detail
AliasDefinition
public AliasDefinition(String beanName, String alias)
Create a new AliasDefinition.- Parameters:
beanName- the canonical name of the beanalias- the alias registered for the bean
AliasDefinition
public AliasDefinition(String beanName, String alias, Object source)
Create a new AliasDefinition.- Parameters:
beanName- the canonical name of the beanalias- the alias registered for the beansource- the source object (may benull)
Method Detail
getBeanName
public final String getBeanName()
Return the canonical name of the bean.
getSource
public final Object getSource()
Description copied from interface:BeanMetadataElementReturn the configuration sourceObjectfor this metadata element (may benull).- Specified by:
getSourcein interfaceBeanMetadataElement