public class

ScannedGenericBeanDefinition

extends GenericBeanDefinition
implements AnnotatedBeanDefinition
java.lang.Object
   ↳ org.springframework.core.AttributeAccessorSupport
     ↳ org.springframework.beans.BeanMetadataAttributeAccessor
       ↳ org.springframework.beans.factory.support.AbstractBeanDefinition
         ↳ org.springframework.beans.factory.support.GenericBeanDefinition
           ↳ org.springframework.context.annotation.ScannedGenericBeanDefinition

Class Overview

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

Summary

[Expand]
Inherited Constants
From class org.springframework.beans.factory.support.AbstractBeanDefinition
From interface org.springframework.beans.factory.config.BeanDefinition
Public Constructors
ScannedGenericBeanDefinition(MetadataReader metadataReader)
Create a new ScannedGenericBeanDefinition for the class that the given MetadataReader describes.
Public Methods
final AnnotationMetadata getMetadata()
Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.
[Expand]
Inherited Methods
From class org.springframework.beans.factory.support.GenericBeanDefinition
From class org.springframework.beans.factory.support.AbstractBeanDefinition
From class org.springframework.beans.BeanMetadataAttributeAccessor
From class org.springframework.core.AttributeAccessorSupport
From class java.lang.Object
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.factory.annotation.AnnotatedBeanDefinition
From interface org.springframework.beans.factory.config.BeanDefinition
From interface org.springframework.core.AttributeAccessor

Public Constructors

public ScannedGenericBeanDefinition (MetadataReader metadataReader)

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

Parameters
metadataReader the MetadataReader for the scanned target class

Public Methods

public final AnnotationMetadata getMetadata ()

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

Returns
  • the annotation metadata object (never null)