Top Description Fields Methods
org.springframework.beans.factory.annotation

public Interface AnnotatedBeanDefinition

extends BeanDefinition
Known Direct Implementers
org.springframework.beans.factory.annotation.AnnotatedGenericBeanDefinition
Imports
org.springframework.beans.factory.config.BeanDefinition, org.springframework.core.type.AnnotationMetadata, .MethodMetadata, org.springframework.lang.Nullable

Extended org.springframework.beans.factory.config.BeanDefinition interface that exposes org.springframework.core.type.AnnotationMetadata about its bean class - without requiring the class to be loaded yet.
Author
Juergen Hoeller
Since
2.5
See Also
AnnotatedGenericBeanDefinition, org.springframework.core.type.AnnotationMetadata

Field Summary

Inherited from org.springframework.beans.factory.config.BeanDefinition:
ROLE_APPLICATIONROLE_INFRASTRUCTUREROLE_SUPPORTSCOPE_PROTOTYPESCOPE_SINGLETON

Method Summary

Modifier and TypeMethod and Description
public MethodMetadata

Returns:

the factory method metadata, or null if none
getFactoryMethodMetadata
()

Obtain metadata for this bean definition's factory method, if any.

public AnnotationMetadata

Returns:

the annotation metadata object (never null)
getMetadata
()

Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.

Inherited from org.springframework.beans.factory.config.BeanDefinition:
getBeanClassNamegetConstructorArgumentValuesgetDependsOngetDescriptiongetDestroyMethodNamegetFactoryBeanNamegetFactoryMethodNamegetInitMethodNamegetOriginatingBeanDefinitiongetParentNamegetPropertyValuesgetResolvableTypegetResourceDescriptiongetRolegetScopehasConstructorArgumentValueshasPropertyValuesisAbstractisAutowireCandidateisLazyInitisPrimaryisPrototypeisSingletonsetAutowireCandidatesetBeanClassNamesetDependsOnsetDescriptionsetDestroyMethodNamesetFactoryBeanNamesetFactoryMethodNamesetInitMethodNamesetLazyInitsetParentNamesetPrimarysetRolesetScope

Method Detail

getFactoryMethodMetadataback to summary
public MethodMetadata getFactoryMethodMetadata()

Obtain metadata for this bean definition's factory method, if any.

Returns:MethodMetadata

the factory method metadata, or null if none

Annotations
@Nullable
Since
4.1.1
getMetadataback to summary
public AnnotationMetadata getMetadata()

Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.

Returns:AnnotationMetadata

the annotation metadata object (never null)