spring-framework / org.springframework.context.annotation / ScannedGenericBeanDefinition

ScannedGenericBeanDefinition

open class ScannedGenericBeanDefinition : GenericBeanDefinition, AnnotatedBeanDefinition

Extension of the 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.

Author
Juergen Hoeller

Author
Chris Beams

Since
2.5

See Also
#getMetadata()#getBeanClassName()org.springframework.core.type.classreading.MetadataReaderFactoryAnnotatedGenericBeanDefinition

Constructors

<init>

ScannedGenericBeanDefinition(metadataReader: MetadataReader)

Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes.

Functions

getFactoryMethodMetadata

open fun getFactoryMethodMetadata(): MethodMetadata

getMetadata

fun getMetadata(): AnnotationMetadata

Inherited Functions

cloneBeanDefinition

open fun cloneBeanDefinition(): AbstractBeanDefinition

equals

open fun equals(other: Any?): Boolean

getParentName

open fun getParentName(): String

setParentName

open fun setParentName(parentName: String): Unit

toString

open fun toString(): String