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:
  • Constructor Details

    • AliasDefinition

      public AliasDefinition(String beanName, String alias)
      Create a new AliasDefinition.
      Parameters:
      beanName - the canonical name of the bean
      alias - the alias registered for the bean
    • AliasDefinition

      public AliasDefinition(String beanName, String alias, @Nullable Object source)
      Create a new AliasDefinition.
      Parameters:
      beanName - the canonical name of the bean
      alias - the alias registered for the bean
      source - the source object (may be null)
  • Method Details

    • getBeanName

      public final String getBeanName()
      Return the canonical name of the bean.
    • getAlias

      public final String getAlias()
      Return the alias registered for the bean.
    • getSource

      @Nullable public final Object getSource()
      Description copied from interface: BeanMetadataElement
      Return the configuration source Object for this metadata element (may be null).
      Specified by:
      getSource in interface BeanMetadataElement