spring-framework / org.springframework.beans.factory.annotation / AnnotatedGenericBeanDefinition / <init>

<init>

AnnotatedGenericBeanDefinition(beanClass: Class<*>)

Create a new AnnotatedGenericBeanDefinition for the given bean class.

Parameters

beanClass - the loaded bean class

AnnotatedGenericBeanDefinition(metadata: AnnotationMetadata)

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 org.springframework.context.annotation.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(metadata: AnnotationMetadata, factoryMethodMetadata: MethodMetadata)

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