类 AnnotatedGenericBeanDefinition

    • 构造器详细资料

      • AnnotatedGenericBeanDefinition

        public AnnotatedGenericBeanDefinition​(Class<?> beanClass)
        Create a new AnnotatedGenericBeanDefinition for the given bean class.
        参数:
        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.
        参数:
        metadata - the annotation metadata for the bean class in question
        从以下版本开始:
        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.
        参数:
        metadata - the annotation metadata for the bean class in question
        factoryMethodMetadata - metadata for the selected factory method
        从以下版本开始:
        4.1.1