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 theBeanDefinition
for the given, requirednamed bean
.Gets theRootBeanDefinition
for the given, requiredbean name
.boolean
Determines whether a bean identified by the given, requiredname
is aFactoryBean
.boolean
Determines whether a bean definition identified by the given, requiredname
is present.Class<?>
-
Method Details
-
isPresent
boolean isPresent()Determines whether a bean definition identified by the given, requiredname
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, requiredname
is aFactoryBean
.- Returns:
- true if the bean identified by the given, required
name
is aFactoryBean
.
-
getBeanDefinition
Gets theBeanDefinition
for the given, requirednamed bean
.- Returns:
- the
BeanDefinition
for the given, requirednamed bean
. - Throws:
NoSuchBeanDefinitionException
- if aBeanDefinition
cannot be found for thenamed bean
.- See Also:
-
getRootBeanDefinition
Gets theRootBeanDefinition
for the given, requiredbean name
.- Returns:
- the
RootBeanDefinition
for the given, requiredbean name
. - Throws:
NoSuchBeanDefinitionException
- if aBeanDefinition
cannot be found for thenamed bean
.IllegalStateException
- if the bean is not aroot bean
.- See Also:
-
resolveType
- Returns:
- the
type
of thereferenced bean
if defined; may be null. - See Also:
-