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.BeanDefinition
Gets theBeanDefinition
for the given, requirednamed bean
.org.springframework.beans.factory.support.RootBeanDefinition
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<?>
Resolves thebean's
definedtype
.
-
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
org.springframework.beans.factory.config.BeanDefinition getBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionExceptionGets theBeanDefinition
for the given, requirednamed bean
.- Returns:
- the
BeanDefinition
for the given, requirednamed bean
. - Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
- if aBeanDefinition
cannot be found for thenamed bean
.- See Also:
-
BeanDefinition
-
getRootBeanDefinition
org.springframework.beans.factory.support.RootBeanDefinition getRootBeanDefinition() throws org.springframework.beans.factory.NoSuchBeanDefinitionExceptionGets theRootBeanDefinition
for the given, requiredbean name
.- Returns:
- the
RootBeanDefinition
for the given, requiredbean name
. - Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
- if aBeanDefinition
cannot be found for thenamed bean
.IllegalStateException
- if the bean is not aroot bean
.- See Also:
-
RootBeanDefinition
-
resolveType
Resolves thebean's
definedtype
.- Returns:
- the
type
of thereferenced bean
if defined; may be null. - See Also:
-
BeanReference
-