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 TypeMethodDescriptionGets theBeanDefinitionfor the given, requirednamed bean.Gets 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<?>
-
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
Gets theBeanDefinitionfor the given, requirednamed bean.- Returns:
- the
BeanDefinitionfor the given, requirednamed bean. - Throws:
NoSuchBeanDefinitionException- if aBeanDefinitioncannot be found for thenamed bean.- See Also:
-
getRootBeanDefinition
Gets theRootBeanDefinitionfor the given, requiredbean name.- Returns:
- the
RootBeanDefinitionfor the given, requiredbean name. - Throws:
NoSuchBeanDefinitionException- if aBeanDefinitioncannot be found for thenamed bean.IllegalStateException- if the bean is not aroot bean.- See Also:
-
resolveType
- Returns:
- the
typeof thereferenced beanif defined; may be null. - See Also:
-