public class AliasDefinition extends Object implements BeanMetadataElement
ReaderEventListener.aliasRegistered(AliasDefinition)
Constructor and Description |
---|
AliasDefinition(String beanName,
String alias)
Create a new AliasDefinition.
|
AliasDefinition(String beanName,
String alias,
Object source)
Create a new AliasDefinition.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Return the alias registered for the bean.
|
String |
getBeanName()
Return the canonical name of the bean.
|
Object |
getSource()
Return the configuration source
Object for this metadata element
(may be null ). |
public AliasDefinition(String beanName, String alias)
beanName
- the canonical name of the beanalias
- the alias registered for the beanpublic final String getBeanName()
public final String getAlias()
public final Object getSource()
BeanMetadataElement
Object
for this metadata element
(may be null
).getSource
in interface BeanMetadataElement