org.springframework.beans.factory.support.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
org.,
which also implements the AnnotatedBeanDefinition interface).
AnnotatedBeanDefinition#getMetadata(), org.springframework.core.type.StandardAnnotationMetadata
| Modifier and Type | Field and Description |
|---|---|
| private MethodMetadata | |
| private final AnnotationMetadata |
| Access | Constructor and Description |
|---|---|
| public | AnnotatedGenericBeanDefinition(Class<?>
the loaded bean class beanClass)Create a new AnnotatedGenericBeanDefinition for the given bean class. |
| public | AnnotatedGenericBeanDefinition(AnnotationMetadata
the annotation metadata for the bean class in question metadata)Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, allowing for ASM-based processing and avoidance of early loading of the bean class. |
| public | AnnotatedGenericBeanDefinition(AnnotationMetadata
the annotation metadata for the bean class in question metadata, MethodMetadata metadata for the selected factory method factoryMethodMetadata)Create a new AnnotatedGenericBeanDefinition for the given annotation metadata, based on an annotated class and a factory method on that class. |
| Modifier and Type | Method and Description |
|---|---|
| public final MethodMetadata | getFactoryMethodMetadata()
Implements org. |
| public final AnnotationMetadata | getMetadata()
Implements org. |
| factoryMethodMetadata | back to summary |
|---|---|
| private MethodMetadata factoryMethodMetadata
| |
| metadata | back to summary |
|---|---|
| private final AnnotationMetadata metadata | |
| AnnotatedGenericBeanDefinition | back to summary |
|---|---|
| public AnnotatedGenericBeanDefinition(Class<?> beanClass) Create a new AnnotatedGenericBeanDefinition for the given bean class.
| |
| AnnotatedGenericBeanDefinition | back to summary |
|---|---|
| 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
| |
| AnnotatedGenericBeanDefinition | back to summary |
|---|---|
| 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.
| |
| getFactoryMethodMetadata | back to summary |
|---|---|
| public final MethodMetadata getFactoryMethodMetadata() Implements org. Doc from org. Obtain metadata for this bean definition's factory method, if any.
| |
| getMetadata | back to summary |
|---|---|
| public final AnnotationMetadata getMetadata() Implements org. Doc from org. Obtain the annotation metadata (as well as basic class metadata) for this bean definition's bean class.
| |