Package org.springframework.data.aot
Interface AotContext.IntrospectedBeanDefinition
- Enclosing interface:
- AotContext
public static interface AotContext.IntrospectedBeanDefinition
Interface defining introspection methods for bean definitions.
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.beans.factory.config.BeanDefinitionGets theBeanDefinitionfor the given, requirednamed bean.org.springframework.beans.factory.support.RootBeanDefinitionGets theRootBeanDefinitionfor the given, requiredbean name.booleanDetermines whether a bean identified by the given, requirednameis aFactoryBean.booleanDetermines whether a bean definition identified by the given, requirednameis present.Class<?>Resolves thebean'sdefinedtype.
-
Method Details
-
isPresent
boolean isPresent()Determines whether a bean definition identified by the given, requirednameis present.- Returns:
- true if the bean definition identified by the given, required
nameregistered with.
-
isFactoryBean
boolean isFactoryBean()Determines whether a bean identified by the given, requirednameis aFactoryBean.- Returns:
- true if the bean identified by the given, required
nameis aFactoryBean.
-
getBeanDefinition
org.springframework.beans.factory.config.BeanDefinition getBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionExceptionGets theBeanDefinitionfor the given, requirednamed bean.- Returns:
- the
BeanDefinitionfor the given, requirednamed bean. - Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- if aBeanDefinitioncannot be found for thenamed bean.- See Also:
-
BeanDefinition
-
getRootBeanDefinition
org.springframework.beans.factory.support.RootBeanDefinition getRootBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionExceptionGets theRootBeanDefinitionfor the given, requiredbean name.- Returns:
- the
RootBeanDefinitionfor the given, requiredbean name. - Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException- if aBeanDefinitioncannot be found for thenamed bean.IllegalStateException- if the bean is not aroot bean.- See Also:
-
RootBeanDefinition
-
resolveType
Resolves thebean'sdefinedtype.- Returns:
- the
typeof thereferenced beanif defined; may be null. - See Also:
-
BeanReference
-