Package org.springframework.data.aot
Interface AotContext.IntrospectedBeanDefinition
- Enclosing interface:
- AotContext
@Deprecated(since="4.0",
forRemoval=true)
public static interface AotContext.IntrospectedBeanDefinition
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0 as this isn't widely used and can be easily implemented within user code.
Interface defining introspection methods for bean definitions.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Gets theBeanDefinition
for the given, requirednamed bean
.Deprecated, for removal: This API element is subject to removal in a future version.Gets theRootBeanDefinition
for the given, requiredbean name
.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Determines whether a bean identified by the given, requiredname
is aFactoryBean
.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Determines whether a bean definition identified by the given, requiredname
is present.@Nullable Class<?>
-
Method Details
-
isPresent
boolean isPresent()Deprecated, for removal: This API element is subject to removal in a future version.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()Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
Deprecated, for removal: This API element is subject to removal in a future version.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
@Nullable Class<?> resolveType()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the
type
of thereferenced bean
if defined; may be null. - See Also:
-