Class ScannedGenericBeanDefinition

All Implemented Interfaces:
Serializable, Cloneable, BeanMetadataElement, AnnotatedBeanDefinition, BeanDefinition, AttributeAccessor

public class ScannedGenericBeanDefinition extends GenericBeanDefinition implements AnnotatedBeanDefinition
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. It is functionally equivalent to AnnotatedGenericBeanDefinition(AnnotationMetadata) but distinguishes by type beans that have been scanned vs those that have been otherwise registered or detected by other means.

Since:
2.5
Author:
Juergen Hoeller, Chris Beams
See Also:
  • Constructor Details

    • ScannedGenericBeanDefinition

      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
  • Method Details