public class

AnnotatedGenericBeanDefinition

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.beans.factory.annotation.AnnotatedGenericBeanDefinition

Class Overview

Extension of the GenericBeanDefinition class, adding support for annotation metadata exposed through the AnnotatedBeanDefinition interface.

This GenericBeanDefinition variant is mainly useful for testing code that expects to operate on an AnnotatedBeanDefinition, for example strategy implementations in Spring's component scanning support (where the default definition class is ScannedGenericBeanDefinition, which also implements the AnnotatedBeanDefinition interface).

Summary

[Expand]
Inherited Constants
From class org.springframework.beans.factory.support.AbstractBeanDefinition
From interface org.springframework.beans.factory.config.BeanDefinition
Public Constructors
AnnotatedGenericBeanDefinition(Class beanClass)
Create a new AnnotatedGenericBeanDefinition for the given bean class.
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 AnnotatedGenericBeanDefinition (Class beanClass)

Also: SpringBeans

Create a new AnnotatedGenericBeanDefinition for the given bean class.

Parameters
beanClass the loaded bean class

Public Methods

public final AnnotationMetadata getMetadata ()

Also: SpringBeans

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

Returns
  • the annotation metadata object (never null)