org.springframework.beans.factory.support.GenericBeanDefinition
class, based on an ASM ClassReader, with support for annotation metadata exposed
through the AnnotatedBeanDefinition interface.
This class does not load the bean Class early.
It rather retrieves all relevant metadata from the ".class" file itself,
parsed with the ASM ClassReader. It is functionally equivalent to
AnnotatedGenericBeanDefinition#AnnotatedGenericBeanDefinition(AnnotationMetadata)
but distinguishes by type beans that have been scanned vs those that have
been otherwise registered or detected by other means.
getMetadata(), getBeanClassName(), org.springframework.core.type.classreading.MetadataReaderFactory , AnnotatedGenericBeanDefinition
| Modifier and Type | Field and Description |
|---|---|
| private final AnnotationMetadata |
| Access | Constructor and Description |
|---|---|
| public | ScannedGenericBeanDefinition(MetadataReader
the MetadataReader for the scanned target class metadataReader)Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes. |
| Modifier and Type | Method and Description |
|---|---|
| public MethodMetadata | getFactoryMethodMetadata()
Implements org. |
| public final AnnotationMetadata | getMetadata()
Implements org. |
| metadata | back to summary |
|---|---|
| private final AnnotationMetadata metadata | |
| ScannedGenericBeanDefinition | back to summary |
|---|---|
| public ScannedGenericBeanDefinition(MetadataReader metadataReader) Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes.
| |
| getFactoryMethodMetadata | back to summary |
|---|---|
| public MethodMetadata getFactoryMethodMetadata() Implements org. Doc from org. Obtain metadata for this bean definition's factory method, if any.
| |
| getMetadata | back to summary |
|---|---|
| public final AnnotationMetadata getMetadata() Implements org. Doc from org. Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.
| |