Interface AotContext.IntrospectedBeanDefinition

Enclosing interface:
AotContext

public static interface AotContext.IntrospectedBeanDefinition
Interface defining introspection methods for bean definitions.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.beans.factory.config.BeanDefinition
    Gets the BeanDefinition for the given, required named bean.
    org.springframework.beans.factory.support.RootBeanDefinition
    Gets the RootBeanDefinition for the given, required bean name.
    boolean
    Determines whether a bean identified by the given, required name is a FactoryBean.
    boolean
    Determines whether a bean definition identified by the given, required name is present.
    Resolves the bean's defined type.
  • Method Details

    • isPresent

      boolean isPresent()
      Determines whether a bean definition identified by the given, required name is present.
      Returns:
      true if the bean definition identified by the given, required name registered with.
    • isFactoryBean

      boolean isFactoryBean()
      Determines whether a bean identified by the given, required name is a FactoryBean.
      Returns:
      true if the bean identified by the given, required name is a FactoryBean.
    • getBeanDefinition

      org.springframework.beans.factory.config.BeanDefinition getBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionException
      Gets the BeanDefinition for the given, required named bean.
      Returns:
      the BeanDefinition for the given, required named bean.
      Throws:
      org.springframework.beans.factory.NoSuchBeanDefinitionException - if a BeanDefinition cannot be found for the named bean.
      See Also:
      • BeanDefinition
    • getRootBeanDefinition

      org.springframework.beans.factory.support.RootBeanDefinition getRootBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionException
      Gets the RootBeanDefinition for the given, required bean name.
      Returns:
      the RootBeanDefinition for the given, required bean name.
      Throws:
      org.springframework.beans.factory.NoSuchBeanDefinitionException - if a BeanDefinition cannot be found for the named bean.
      IllegalStateException - if the bean is not a root bean.
      See Also:
      • RootBeanDefinition
    • resolveType

      @Nullable Class<?> resolveType()
      Resolves the bean's defined type.
      Returns:
      the type of the referenced bean if defined; may be null.
      See Also:
      • BeanReference