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