Interface AotContext.IntrospectedBeanDefinition
- Enclosing interface:
AotContext
public static interface AotContext.IntrospectedBeanDefinition
Interface defining introspection methods for bean definitions.
- Since:
- 3.0
- Author:
- Christoph Strobl, John Blum, Mark Paluch
-
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.@Nullable Class<?>
-
Method Details
-
isPresent
-
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
@Nullable Class<?> resolveType()- Returns:
- the
typeof thereferenced beanif defined; may be null. - See Also:
-