org.springframework.beans.factory.annotation

Class AnnotatedGenericBeanDefinition

    • Constructor Detail

      • AnnotatedGenericBeanDefinition

        public AnnotatedGenericBeanDefinition(java.lang.Class<?> beanClass)
        Create a new AnnotatedGenericBeanDefinition for the given bean class.
        Parameters:
        beanClass - the loaded bean class
      • AnnotatedGenericBeanDefinition

        public AnnotatedGenericBeanDefinition(AnnotationMetadata metadata)
        Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, allowing for ASM-based processing and avoidance of early loading of the bean class. Note that this constructor is functionally equivalent to ScannedGenericBeanDefinition, however the semantics of the latter indicate that a bean was discovered specifically via component-scanning as opposed to other means.
        Parameters:
        metadata - the annotation metadata for the bean class in question
        Since:
        3.1.1
      • AnnotatedGenericBeanDefinition

        public AnnotatedGenericBeanDefinition(AnnotationMetadata metadata,
                                              MethodMetadata factoryMethodMetadata)
        Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, based on an annotated class and a factory method on that class.
        Parameters:
        metadata - the annotation metadata for the bean class in question
        factoryMethodMetadata - metadata for the selected factory method
        Since:
        4.1.1