Class BeanComponentDefinition

java.lang.Object
org.springframework.beans.factory.config.BeanDefinitionHolder
org.springframework.beans.factory.parsing.BeanComponentDefinition
All Implemented Interfaces:
BeanMetadataElement, ComponentDefinition

public class BeanComponentDefinition extends BeanDefinitionHolder implements ComponentDefinition
ComponentDefinition based on a standard BeanDefinition, exposing the given bean definition as well as inner bean definitions and bean references for the given bean.
Since:
2.0
Author:
Rob Harrop, Juergen Hoeller
  • Constructor Details

    • BeanComponentDefinition

      public BeanComponentDefinition(BeanDefinition beanDefinition, String beanName)
      Create a new BeanComponentDefinition for the given bean.
      Parameters:
      beanDefinition - the BeanDefinition
      beanName - the name of the bean
    • BeanComponentDefinition

      public BeanComponentDefinition(BeanDefinition beanDefinition, String beanName, @Nullable String[] aliases)
      Create a new BeanComponentDefinition for the given bean.
      Parameters:
      beanDefinition - the BeanDefinition
      beanName - the name of the bean
      aliases - alias names for the bean, or null if none
    • BeanComponentDefinition

      public BeanComponentDefinition(BeanDefinitionHolder beanDefinitionHolder)
      Create a new BeanComponentDefinition for the given bean.
      Parameters:
      beanDefinitionHolder - the BeanDefinitionHolder encapsulating the bean definition as well as the name of the bean
  • Method Details