Interface AnnotatedBeanDefinition

All Superinterfaces:
AttributeAccessor, BeanDefinition, BeanMetadataElement
All Known Implementing Classes:
AnnotatedGenericBeanDefinition, ScannedGenericBeanDefinition

public interface AnnotatedBeanDefinition extends BeanDefinition
Extended BeanDefinition interface that exposes AnnotationMetadata about its bean class - without requiring the class to be loaded yet.
Since:
2.5
Author:
Juergen Hoeller
See Also:
  • Method Details

    • getMetadata

      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)
    • getFactoryMethodMetadata

      @Nullable MethodMetadata getFactoryMethodMetadata()
      Obtain metadata for this bean definition's factory method, if any.
      Returns:
      the factory method metadata, or null if none
      Since:
      4.1.1