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 String
getAlias()
Return the alias registered for the bean.String
getBeanName()
Return the canonical name of the bean.Object
getSource()
Return the configuration sourceObject
for 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:BeanMetadataElement
Return the configuration sourceObject
for this metadata element (may benull
).- Specified by:
getSource
in interfaceBeanMetadataElement